1.屏蔽窗口最大化属性
DWORD dwStyles = ::GetWindowLong(m_hWnd, GWL_STYLE);
dwStyles &= ~WS_MAXIMIZEBOX;
::SetWindowLong(m_hWnd,GWL_STYLE, dwStyles);
2.双击标题栏最大化最小化的消息屏蔽
if(WM_NCLBUTTONDBLCLK == uMsg)
{
return 0;
}