How can I disable the Close ("x") button of the MDI child window ?
I tried to add the following code in the OnCreate virtual function of my child frame class:
CMenu * psysmenu = GetSystemMenu( FALSE );
psysmenu->EnableMenuItem( SC_CLOSE, MF_DISABLED | MF_BYCOMMAND | MF_GRAYED );
It worked as long as the child window is not maximized, but if the child window is maximized then the "x" button is not disabled.