The information in this article applies to:
SUMMARYThe system menu of an Multiple Document Interface (MDI) child can be modified only after the WM_CREATE message for the MDI child is processed. If an application tries to modify the system menu of an MDI child during the processing of the child's WM_CREATE message, the system menu will not be changed. MORE INFORMATION
It is common to try to alter a window's system menu during the processing
of its WM_CREATE message. This method has no effect on the system menu of
an MDI child, however, because of the way a MDI child window is created:
To work around this design decision, the child window procedure can post a custom message to itself during the processing of its WM_CREATE message. This custom message is processed after the MDI client has finished creating the MDI child. The code for this workaround might resemble the following:
Additional query words: no32bit
Keywords : kb16bitonly kbMDI kbMenu kbSDKPlatform kbWndw UsrMdi |
Last Reviewed: June 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |