
Q: Getting pointer to CMainFrame from document?
Quote:
> AfxGetMainWnd doesn't work. See my previous post titled
> "AfxGetMainWnd returns CSplashWnd not CMainFrame during app startup"
> TIA - Best regards, Lee Gillie
Sounds like the MainFrame Window is not yet created. The document is
created before the Frame (it's an SDI, right?) So you have to do whatever
you do later.
cU
--
http://djuga.home.ml.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Retriever 1.0 is out: http://retriever.home.ml.org
Shareware image viewer, thumbnailer & database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~