Click to See Complete Forum and Search --> : Removing Maximize box


Wolfram Steinke
May 30th, 1999, 06:21 AM
How does one remove the maximize box from the application window in an App wizard generated SDI application. Modifying the Style in the OnCreate method disables it but the box is still there and the cursor still changes as if resizing were possible.

Dan Haddix
May 30th, 1999, 01:55 PM
Add the following two statements to the PreCreateWindow function of your CMainFrame class

cs.style &= ~WS_MAXIMIZEBOX;
cs.style &= ~WS_THICKFRAME;




This will make so the window can not be resized or maximized.