how to access mainframe from the object
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
i define a object from one of my own class in CMainframe, then i wanna get a pointer to this CMainframe inside the object, how can i do that? ps.my own class is derived from CDocument Josephvan thanks for your attention
josephvan wrote: ...i wanna get a pointer to this CMainframe... How about
AfxGetMainWnd()
?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
josephvan wrote: ...i wanna get a pointer to this CMainframe... How about
AfxGetMainWnd()
?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow