SAMPLE: XpandDlg.exe Demonstrates Changing Dialog Box Size

ID: Q84980


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1


SUMMARY

The Color dialog box provided by the COMMDLG dynamic-link library (DLL) expands to show additional controls when the user chooses the Define Custom Colors button. The XpandDlg.exe sample application in the Microsoft Software Library demonstrates how an application can implement similar behavior.


MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

XpandDlg.exe
For 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.asp
and then click How to use the Microsoft Download Center.

The XpandDlg.exe sample implements changing the size of the dialog box through the following three steps:
  1. Create the dialog box at its large size.


  2. Call the MoveWindow() function to size the window to the smaller size when the dialog box procedure receives a WM_INITDIALOG message.


  3. To show the remainder of the dialog box on the screen, call MoveWindow() again.


Additional query words:

Keywords : kbfile kbsample kb16bitonly kbDlg kbGrpUser kbWinOS310 kbWinOS300
Version : WINDOWS:3.0,3.1
Platform : WINDOWS
Issue type :


Last Reviewed: December 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.