在对话窗类中重载 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_CLOSE) { //your codes is here return true; } } return CDialog::WindowProc(message, wParam, lParam); }
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_CLOSE)
{
//your codes is here
return true;
}
}
return CDialog::WindowProc(message, wParam, lParam);
}