Mar 3, 2009

Disable close button

        // Disable close button.


        CMenu* pMenu = this->GetSystemMenu(FALSE);
        pMenu->EnableMenuItem(SC_CLOSE, MF_BYCOMMAND|MF_DISABLED|MF_GRAYED);