Solved

CFileDialog default to "Details" rather than "List"

Posted on 1998-09-23
2
347 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

20 Experts available now in Live!

Get 1:1 Help Now