matching MFC and WTL
ATL / WTL / STL
2
Posts
2
Posters
0
Views
1
Watching
-
hi all, how can i match AfxGetMainWnd() in WTL code? the issue is that from child windows or from some other classes i need to get a pointer to MainFrame. AfxXXXXXXXXX does bot work... what does then? debug - is my life style
-
hi all, how can i match AfxGetMainWnd() in WTL code? the issue is that from child windows or from some other classes i need to get a pointer to MainFrame. AfxXXXXXXXXX does bot work... what does then? debug - is my life style
There is no such function. Store the pointer to your main window where it is created (typically in the ProjectName.cpp file if you are using the WTL-wizard). Either make a global variable or a function, say WtlGetMainWnd(). -- Seraphim Shock. Gold for your ears.