Translating Dialog-Box Size Units to Screen UnitsLast reviewed: December 15, 1995Article ID: Q74280 |
The information in this article applies to:
SUMMARYIn the Microsoft Windows graphical environment, the MapDialogRect function converts dialog-box units to screen units easily.
MORE INFORMATIONWhen 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 reference words: 3.00 3.10 3.50 3.51 4.00 95 convert unit pixel
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |