Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can my CWinApp object gain access to the frame window in a doc/view architecture program?

I know that the CWinApp member m_pMainWin holds a pointer to the main window if the doc/view architecture is not used. But I really don't know how to get in a doc view architecture program.Googling and documentation reading has nog offered any help.
Posted
Updated 14-Feb-14 3:11am
v3

1 solution

If I remember correctly, MFC apps save the application's window handle in the m_pMainWnd variable, which you can access via AfxGetMainWnd[^].
 
Share this answer
 
Comments
Gbenbam 15-Feb-14 11:13am    
Thanks a lot.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900