Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>getdialogbaseunits()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetDialogBaseUnits()
Return the dialog base units used when creating dialog boxes
------------------------------------------------------------------------------

Syntax
GetDialogBaseUnits()   -->   nValue

Arguments
None.

Returns
A numeric value containing both the width and height of the
base units.

Description
This function returns a numeric value containing both the
width and height (in pixels) of the dialog base units.  The
width can be extracted by the C4W_LoWord() function, and the
height can be extracted by C4W_HiWord().

The base units are derived from the system font.  To determine
the width and height of a control in a dialog, take the width
and height in dialog units, multiply by the values extracted
from GetDialogBaseUnits(), and then divide by 4 (for the
width in pixels) and 8 (for the height).

Example
? C4W_LoWord( GetDialogBaseUnits() )   // Result: depends on your system


See Also: DialogBox()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson