How To Preventing an MDI Child Window from Changing Size (71669)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q71669
3.00 3.10
WINDOWS
kbprg
SUMMARY
In an application using the Windows Multiple Document Interface (MDI), MDI
child windows are always created with a maximize button, a minimize button,
and a thick "sizing" border. Currently, it is not possible to modify this
default behavior.
However, it is possible to prevent an MDI child from being maximized,
minimized, or sized. This can be done by performing two steps:
- Disable the Maximize, Minimize, and Size options on the child
window's system menu.
- Trap the appropriate WM_SYSCOMMAND messages in the MDI child
window's window procedure.
This article contains a sample MDI child window procedure that
illustrates this technique.
Modification Type: | Minor | Last Reviewed: | 2/11/2005 |
---|
Keywords: | kb16bitonly kbhowto kbMDI kbWndw KB71669 |
---|
|