how to close main window(Dialog) in MFC
In MFC how to close 开发者_如何学Cmain window(Dialog) when child window wm_close event is called
I think you can post WM_CLOSE message to the main window in the child window's handler of WM_CLOSE. Like
void ChildWindow::OnClose( ){
::PostMessage(hWnd_MainWindow, WM_CLOSE, 0, 0);
}
精彩评论