Solved

CFileDialog default to "Details" rather than "List"

Posted on 1998-09-23
2
359 Views
Last Modified: 2013-11-19
I have an application I've built inwhich the users always need to see the size of a file before selecting it from the file open dialog.  Right now they are always clicking the "Details" button on the common file open dialog before selecting a file.  It seems to me that there should be a simple way of programmatically changing which view the file open dialog starts with.  "Simple" in this case means without having to subclass CFileDialog.
0
Comment
Question by:taashlo
2 Comments
 
LVL 1

Accepted Solution

by:
Grailman earned 100 total points
ID: 1322497
CFileDialog states that if you want to initialize the various file dialog-box options you have to set members of the m_ofn structure.

Check out the OPENFILENAME structure. Looks like if you may have to do a custom template.

0
 
LVL 1

Expert Comment

by:VAM345
ID: 1322498
I think that you can`t do it because that is stile on ListCtrl in FileOpenDialog and you can change style from you function.
You need extendet CFileDialog, writing CFileDialogExt that can change style of ListCtrl.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 90
Named range not carried over 10 63
pre4 challenge 19 100
Fibonacci challenge 11 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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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