rangers99
asked on
Retrieving a document pointer
I am trying to retrieve a pointer to the active document in my application from my CMainFrame class (which is derived from CMDIFrameWnd).
I am calling GetActiveDocument() but all Im getting is a NULL pointer. Any suggestions?
I am calling GetActiveDocument() but all Im getting is a NULL pointer. Any suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
From what I remember you need to have a CMDIChildWnd as well. I think these are then all registered with an CMultiDocTemplate that controls the whole process. Apart from that Ive mainly used a app wizard to generate the code for a basic mdi. If ya want that let me know and ill email it to you
ASKER
Thanks a lot!
ASKER
Thanks a lot!
ASKER
Thanks a lot!