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.
Printable View
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.
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.