// 添加处理WM_WINDOWPOSCHANGING消息 void CXXDlg::OnWindowPosChanging(WINDOWPOS FAR* lpwndpos) { lpwndpos->flags &= ~SWP_SHOWWINDOW; // 去掉SWP_SHOWWINDOW标记 CDialog::OnWindowPosChanging(lpwndpos); // TODO: Add your message handler code here }