The information in this article applies to:
SUMMARYMDIWinMN.exe is a sample that demonstrates how to customize the Window menu of a multiple document interface (MDI) frame window. MDIWinMN.exe shows you how to limit the number of listed MDI children in the Window menu to any number and how to bring up a customized dialog box when the More Windows menu item is selected. This sample also shows how to list all the MDI children in the Window menu without using a More Windows menu item. MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. To compile MDIWinMN.exe, type NMAKE to build the sample. This sample limits the number of MDI child windows listed in the Window menu and brings up the customized dialog box when the More Windows menu item is selected. Type NMAKE MENU=NOLIMIT to build the sample that lists all the the MDI children in the Window menu without using a More Windows menu item. You need to make the following changes in the window procedure of the MDI frame window to customize the Window menu:
ProcessWindowMenu() processes WM_COMMAND messages that result from menu selections of MDI children in the Window menu. It also brings up a customized dialog box when the More Windows menu item is selected. Additional query words:
Keywords : kbfile kbsample kbMDI kbGrpUser kbWndw |
Last Reviewed: December 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |