Solved

OnOpenDocument Query

Posted on 1998-03-26
1
234 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now