FormView on close
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Hi all, CFormView::OnClose() ( WM_CLOSE ) event is not coming. Can u tell me the reason?
CFormView::OnClose()
is not called because views do not have a close button. The close button belongs to the frame window, andOnClose()
is a message handler for it. You could call something in the view from your frame windowOnClose()
, or add a message handler in the view forWM_DESTROY
(OnDestroy()
).Best wishes, Hans
-
CFormView::OnClose()
is not called because views do not have a close button. The close button belongs to the frame window, andOnClose()
is a message handler for it. You could call something in the view from your frame windowOnClose()
, or add a message handler in the view forWM_DESTROY
(OnDestroy()
).Best wishes, Hans