13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GetOeviceCapsTable 4.9: GDI information indexes (continued)789101112131415Device can do integer multiplesfor scaling.Device can do any multiples forexact scaling.Device can do double-weightcharacters.Device can do italicizing.Device can do underlining.Device can do strikeouts.Device can do raster fonts.Device can do vector fonts.Reserved. Must be returned zero.For a list of all the available abilities, see the LOG FONT data structure inChapter 7, "Data types and structures," in Reference, Volume 2.GetDialog8aseUnits 3.0Syntax LONG GetDialogBaseUnits( )function GetDialogBaseUnits: Longint;ParametersReturn valueCommentsThis function returns the dialog base units used by Windows whencreating dialog boxes. An application should use these values to calculatethe average width of characters in the system font.None.The return value specifies the dialog base units. The high-order wordcontains the height in pixels of the current dialog base height unit derivedfrom the height of the system font, and the low-order word contains thewidth in pixels of the current dialog base width unit derived from thewidth of the system font.The values returned represent dialog base units before being scaled toactual dialog units. The actual dialog unit in the x direction is 1/4 of thewidth returned by GetDialogBaseUnits. The actual dialog unit in the ydirection is 1/8 of the height returned by the function.To determine the actual height and width in pixels of a control, given theheight (x) and width (y) in dialog units and the return valueODlgBaseUnits) from calling GetDialogBaseUnits, use the followingformula:(x * LOWORD(lDlgBaseUnits))/4(y * HIWORD(lDlgBaseUnits))/8308Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!