Solved

CFileDialog default to "Details" rather than "List"

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 52
cat dog challenge 18 126
iSeries FTP Exit Program 8 145
Replacement selected text 2 63
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.

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