cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
How to call OnFileNew() from a dialog bo
How to call OnFileNew() from a dialog box in MFC VC++?
Apr 10, 2009 at 6:15am UTC
krishna k
(1)
I am using a MDI application project.
I need to open an new file/document when a button in a dialog box is clicked..
How to call the OnFileNew() or is there any other way to open a new document?
Please help me.... Thank u...
Apr 10, 2009 at 6:37am UTC
writetonsharma
(1461)
you can use
sendmessage()
with the wm_command for the menu of fileopen on dialog when someone presses the button. this will behave as if someone is trying to open the file from file menu.
Topic archived. No new replies allowed.