How do I get the frame?
-
I am creating a DialogBar, however I have to assosiate the DialogBar resource with the View Class because it needs to be able to access data members from the view. however now I have a problem.. I need to be able to figure out how to retrive the m_wndDlgBar data member from the frame. so I can add code in my view as such CSliderCtrl* pSlide = (CSliderCtrl*)m_wndDlgBar.GetDlgItem(IDC_DIALOG_BAR); any help would be appreciated
-
I am creating a DialogBar, however I have to assosiate the DialogBar resource with the View Class because it needs to be able to access data members from the view. however now I have a problem.. I need to be able to figure out how to retrive the m_wndDlgBar data member from the frame. so I can add code in my view as such CSliderCtrl* pSlide = (CSliderCtrl*)m_wndDlgBar.GetDlgItem(IDC_DIALOG_BAR); any help would be appreciated
-
There are several solutions. One solution is to class a function in view. Another solution is messages. Kuphryn
Can you give a little more detail on either method. I tried creating a public function in CMainFrame such as CToolBar& GetToolBar(){return m_wndToolBar;} then tried to access CMainFrame::GetToolBar() but of course that didn't work..
-
Can you give a little more detail on either method. I tried creating a public function in CMainFrame such as CToolBar& GetToolBar(){return m_wndToolBar;} then tried to access CMainFrame::GetToolBar() but of course that didn't work..
-
I thought of that is well, but AfxGetMainWnd() does not give me access to the toolbars or statusbars.