Solved

OnOpenDocument Query

Posted on 1998-03-26
1
267 Views
Last Modified: 2013-11-20
In my CDocument class in OnOpenDocument() how do i specify a default directory and file extension for the files to be shown in the open file dialog box?  

Thanks

Jimbo
0
Comment
Question by:jimbo011697
1 Comment
 
LVL 7

Accepted Solution

by:
galkin earned 50 total points
ID: 1317244
Use SetCurrentDirecory to set default directory. Extension is termined by your application document association. To change this behavoiur you must override CWinApp::OnFileOpen
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
unable to delete all specified values regedit 38 537
maxBlock challenge 30 142
countEvens challenge 2 111
haveThree challenge 22 121
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question