Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - getdialogbaseunits() returns the dialogbox base units used to create it http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 GetDialogBaseUnits()   Returns the DialogBox base units used to create it
--------------------------------------------------------------------------------

   Syntax:              GetDialogBaseUnits()  --> <nBaseUnits>

                        This function returns the DialogBox base units
                        used by Windows when creating DialogBoxes. An
                        application should use these values to calculate
                        the average width of characters in the system font.

   Parameters:          None

   Returns:

   <nBaseUnits>         A long value ( 4 bytes ) containing the width
                        and the height in pixels used by Windows in the
                        conversion of units for the DialogBoxes coordinates:
                        ( in Windows, DialogBoxes use logical units )

                        nWidth  = ( x * nLoWord( GetDialogBaseUnits() ) ) / 4
                        nHeight = ( y * nHiWord( GetDialogBaseUnits() ) ) / 8

                        x and y are the width and height in units of the
                        DialogBox.

                        FiveWin controls all these processes automatically
                        through the TDialog Class and DialogBoxes xBase
                        commands.

   Source code:         SOURCE\\WINAPI\\Dlg2Chr.c


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