-
April 14th, 2009, 09:37 AM
#13
Re: How to call OnFileNew() from a dialog box in MFC VC++?
Originally Posted by ovidiucucu
Anyhow, this discussion is off-topic, the OP having nothing in common with a view or an active view.
Good point, as OnFileNew is a CWinApp function, not a CView function.
AfxGetApp()->OnFileNew() should do the trick.
Tags for this Thread
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
|