The information in this article applies to:
SUMMARYIn certain circumstances it is desirable to dynamically scale the controls in a dialog box to the size of the dialog box window. Sclbldgl.exe is a file in the Microsoft Software Library that contains sample code implementing scaleable controls in a dialog box. MORE INFORMATIONThe following file is available for download from the Microsoft
Download Center. Click the file name below to download the file: SclblDlg.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. To accomplish scaleable controls in a dialog box, the following messages are processed: NOTE: Special processing is required for calculating the dimensions of
CBS_DROPDOWN and CBS_DROPDOWNLIST style combo boxes. GetWindowRect()
returns the dimensions of the edit portion of the combo box, excluding the
drop-down list. To get the correct height for such combo boxes, the value
returned by CB_GETDROPPEDCONTROLRECT is used instead of GetWindowRect().
Additional query words: proportional sizing
Keywords : kbfile kbsample kbCtrl kbDlg kbNTOS kbNTOS350 kbNTOS351 kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS kbWinOS95 |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |