How to get a pointer to CView class from CMainFrame class
-
Hi, I would like to know how to get a pointer to my CView class from CMainFrame class? Ehsan Behboudi
See CFrameWnd::GetActiveView(). Cheers, swine [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
-
Hi, I would like to know how to get a pointer to my CView class from CMainFrame class? Ehsan Behboudi
-
See CFrameWnd::GetActiveView(). Cheers, swine [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
-
i used it and i got an wierd error, I had to include my CView header file, in my case it is: #include "CMotionControllerView.h" and i got 3 error all had to do with the GetDocument() in CView class !!!!! Ehsan Behboudi
You'll probably need to forward declare your CDocument derived class in the CMotionControllerView.h file. Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
-
i used it and i got an wierd error, I had to include my CView header file, in my case it is: #include "CMotionControllerView.h" and i got 3 error all had to do with the GetDocument() in CView class !!!!! Ehsan Behboudi
ok well that doesn't tell me much... you need to be more descriptive if you want help. :) what exact errors, etc? perhaps you didn't do the casting correctly...? [b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
-
It's all in msdn ;)
A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.