LRESULT CMainFrame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
// TODO: Add your specialized code here and/or call the base class
if(message == WM_SYSCOMMAND)
{
if(wParam == SC_MINIMIZE ||
wParam == SC_RESTORE ||
wParam == SC_CLOSE ||
wParam == SC_MAXIMIZE )
return FALSE;
}
return CMDIChildWnd::WindowProc(message, wParam, lParam);
}
-------------------------------
这是屏蔽掉最小,最大,还原、关闭。
转载于:https://www.cnblogs.com/bcxx_qin/archive/2009/02/13/1389951.html