HOWTO: Translate Dialog-Box Size Units to Screen UnitsID: Q74280
|
In the Microsoft Windows graphical environment, the MapDialogRect function converts dialog-box units to screen units easily.
When a application dynamically adds a child window to a dialog box, it
may be necessary to align the new control with other controls that
were defined in the dialog box's resource template in the RC file.
Because the dialog box template defines the size and position of a
controls in dialog-box units rather than in screen units (pixels), the
application must translate dialog-box units to screen units to align
the new child window.
An application can use the following two methods to translate dialog-
box units to screen units:
Additional query words: convert unit pixel
Keywords : kbDlg kbNTOS kbGrpUser kbWinOS
Version :
Platform :
Issue type : kbhowto
Last Reviewed: March 7, 1999