How to call OnFileNew() from a dialog box in MFC VC++?

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...
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.