Sending WM_ACTIVATE to CFormView
-
I want to send an WM_ACTIVATE message to a CFormView. (Basically I want the view to know when the App isn't the app with focus anymore.) I have code for the CMainFrame that catches it. The app is also a SDI app. The only relationship I see is in theApp.InitInstance where it goes: CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CGUIDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CGUIView)); How can get WM_ACTIVATE from CMainFrame to CGUIView?
-
I want to send an WM_ACTIVATE message to a CFormView. (Basically I want the view to know when the App isn't the app with focus anymore.) I have code for the CMainFrame that catches it. The app is also a SDI app. The only relationship I see is in theApp.InitInstance where it goes: CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CGUIDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CGUIView)); How can get WM_ACTIVATE from CMainFrame to CGUIView?
MFC already has this built-in, CView::OnActivateFrame() --Mike-- http://home.inreach.com/mdunn/ While I can't be correct on all matters, I can make the reassuring claim that where I am inaccurate, I am at least definitively inaccurate. :love: your :bob: with :vegemite: and :beer: Sonork - 100.10414 AcidHelm
-
MFC already has this built-in, CView::OnActivateFrame() --Mike-- http://home.inreach.com/mdunn/ While I can't be correct on all matters, I can make the reassuring claim that where I am inaccurate, I am at least definitively inaccurate. :love: your :bob: with :vegemite: and :beer: Sonork - 100.10414 AcidHelm
I _AM_ an idiot. Thanks.