Solved

CFileDialog default to "Details" rather than "List"

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 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

17 Experts available now in Live!

Get 1:1 Help Now