Help->Communication between "frames" in a window.
-
I have a VC++ MFC AppWizard exe project,and I have add these two classes to the project: class CRightView : public CFormView class CImageView : public CView In the Right View class I have a button. In the ImageView class I have nothing. I redefined the CMainFrame::OnCreateClient method,adding: m_wndSplitter.CreateStatic(this,1,2); m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CImageView),CSize(0,0),pContext); m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CRightView),CSize(0,0),pContext); Now I can't manage to "communicate" between both frames. I can see in the result window both frames,and the button in the RightView frame, but when I push that button,even a simple "void CRightView::OnOK() {AfxMessageBox("HI");}" is not working, and nothing shows up. What's wrong here? Thanks.