ending SDI application
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
hello every body I want to know how can i end an sdi application like what we do in the Dialog application by calling CDialog::OnOk() Best Regards :)
-
I believe the best practice is to post a WM_CLOSE message to your CFrameWnd-derived object. Something like that:
AfxGetMainWnd()->SendMessage(WM_CLOSE);