> Is the a function to get the main dialog similar the the
> ::AfxGetMainWnd() to get the main window?
If you are talking about the standard wizard-generated dialog based
application the the main dialog IS the main window. AfxGetMainWnd()
will return a pointer to it, which you must cast into a pointer to your
main dialog class.
CMyMainDlg* pmain = (CMyMainDlg*)AfxGetMainWnd();
--
Scott McPhillips [VC++ MVP]
Gordon Jeffrey wrote:
> Is the a function to get the main dialog similar the the
> ::AfxGetMainWnd() to get the main window?
--
Maarten Kools
___________________________________________
Van Gennep - Media Automation Consulting bv
Burg. Stramanweg 105
1101 AA Amsterdam
The Netherlands
Phone: +31-20-697 6029
Fax: +31-20-697 2249
E-mail: mko...@vangennep.nl
WWW: http://www.vangennep.nl
WWW: http://www.vangennep.com
___________________________________________
On 1 Sep 2004 04:08:36 -0700, gordonj...@hotmail.com (Gordon Jeffrey) wrote:
>Is the a function to get the main dialog similar the the
>::AfxGetMainWnd() to get the main window?
Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm