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?

(I also have some other actions to be performed when the button is clicked like closing the dialog..
So, creating a new document is to be 1 of the statement)

I am running into a deadline to finish my project..

Please help me.... Thank u...