HOWTO: How to Prevent Mainframe Window from Being ReSized (133256)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q133256 SUMMARY
Adding the WS_THICKFRAME windows style allows a window to be re-sized. By
removing this from the Mainframe window's styles, you can prevent this
window from being resized. Further, the MINMAXINFO structure stores the
maximum and minimum tracking size of a window. The WM_GETMINMAXINFO message
is sent to a window when the size or position of that window is about to
change. An application can over-ride the handler for this message to set a
window's default minimum or maximum tracking size.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbhowto KbUIDesign kbWndw KB133256 |
---|
|