Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a file with CFileDialog

Status
Not open for further replies.

senkyoshi

Programmer
Jul 27, 2004
3
US
I am using CFileDialog to open a File. I want the file to open and show in the main window like it would in Microsift Word. The problem is that when I choose a file and then click OK (Open), nothing happens. Do I need to add something that will open the file for editing? Maybe I should also mention that I am overwritting the OnInitDialog() function.

Thanks!
 
I found the answer. I just made a call to

CWinApp::OpenDocumentFile(InputFolder);

that opens it right up.

thanks again.
Edit/Delete Message
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top