Link to home
Start Free TrialLog in
Avatar of taashlo
taashlo

asked on

CFileDialog default to "Details" rather than "List"

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.
ASKER CERTIFIED SOLUTION
Avatar of Grailman
Grailman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VAM345
VAM345

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.