Sensoray 2224 Windows Uživatelský manuál Strana 92

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 94
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 91
gtext t xL yT xR yB [s=0]
This is a simple wrapper function for the Windows DrawText () function. It also returns Width and Height
values when DrawText() is called with the DT_CALCRECT option for calculating the bounding rectangle
for the given text.
The arguments are:
t = text to be overlayed
xL= Horizontal coordinate for the top left pixel of text in device context / bitmap
yT = Vertical coordinate for the top left pixel of text in device context / bitmap
xR= Horizontal coordinate for the bottom right pixel of text in device context / bitmap
yB = Vertical coordinate for the bottom right pixel of text in device context / bitmap
s = style
DT_TOP 0x00000000
DT_LEFT 0x00000000
DT_CENTER 0x00000001
DT_RIGHT 0x00000002
DT_VCENTER 0x00000004
DT_BOTTOM 0x00000008
DT_WORDBREAK 0x00000010
DT_SINGLELINE 0x00000020
DT_EXPANDTABS 0x00000040
DT_TABSTOP 0x00000080
DT_NOCLIP 0x00000100
DT_EXTERNALLEADING 0x00000200
DT_CALCRECT 0x00000400
DT_NOPREFIX 0x00000800
DT_INTERNAL 0x00001000
DT_EDITCONTROL 0x00002000
DT_PATH_ELLIPSIS 0x00004000
DT_END_ELLIPSIS 0x00008000
DT_MODIFYSTRING 0x00010000
DT_RTLREADING 0x00020000
DT_WORD_ELLIPSIS 0x00040000
DT_NOFULLWIDTHCHARBREAK 0x00080000
DT_HIDEPREFIX 0x00100000
DT_PREFIXONLY 0x00200000
92
Zobrazit stránku 91
1 2 ... 87 88 89 90 91 92 93 94

Komentáře k této Příručce

Žádné komentáře