|
-
October 31st, 2007, 04:05 AM
#1
Getting the main window pointer from an ActiveX control
I have an ActiveX control embedded in a view. I would like to know if there is a way to get a pointer to the main application window from within the control. Of course, I could get the pointer when creating the control and pass it as an argument of some SetMainWnd method, but I am just curious if there's a direct way - just like AfxGetMainWnd() which unfortunately doesn't work inside the ActiveX control (it returns NULL).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|