Findinf my CFrameWnd ?
-
Hi there, 1. Is there a possibility to get a pointer to my Main Frame from my CView derived ? 2. I have a split window with a CView derived Win in one side and a CFrameWnd on the other (which have his own CViews). a. how can i find the parent Frame of the view? b.how can i find the Main Frame of the view (the parent of the parent's frame)? Thanks in Advanced, Ariel.
-
Hi there, 1. Is there a possibility to get a pointer to my Main Frame from my CView derived ? 2. I have a split window with a CView derived Win in one side and a CFrameWnd on the other (which have his own CViews). a. how can i find the parent Frame of the view? b.how can i find the Main Frame of the view (the parent of the parent's frame)? Thanks in Advanced, Ariel.
1. CMainFrame * pMain = (CMainFrame*) AfxGetMainWnd(); 2/ a. GetParentFrame() b. oh, a view inside a view ? The only MainFrame is the one you get above, but I doubt that is what you mean ? Christian The content of this post is not necessarily the opinion of my yadda yadda yadda. To understand recursion, we must first understand recursion.
-
1. CMainFrame * pMain = (CMainFrame*) AfxGetMainWnd(); 2/ a. GetParentFrame() b. oh, a view inside a view ? The only MainFrame is the one you get above, but I doubt that is what you mean ? Christian The content of this post is not necessarily the opinion of my yadda yadda yadda. To understand recursion, we must first understand recursion.