CFileDialog Customization - Date Order
-
I have found several nice articles on customizing and superclassing CFileDialog to do things like change the dialog size and defaulting to a particular view (list, detail, thumbnail) when displaying files. I haven't found anything on how to change the file display order. I would like to show the files in detail view (done) and then order them by date, descending, in the view. There doesn't appear to be any programatic way to do this, short of creating my own file dialog box from scratch. I have attempted to send messages faking a left click on the date header, but that does nothing. It would be really nice to show the user the newest files to process. Any ideas? Thx in advance "It takes a minimum of redesign to turn a crucifix into a pogo stick"
-
I have found several nice articles on customizing and superclassing CFileDialog to do things like change the dialog size and defaulting to a particular view (list, detail, thumbnail) when displaying files. I haven't found anything on how to change the file display order. I would like to show the files in detail view (done) and then order them by date, descending, in the view. There doesn't appear to be any programatic way to do this, short of creating my own file dialog box from scratch. I have attempted to send messages faking a left click on the date header, but that does nothing. It would be really nice to show the user the newest files to process. Any ideas? Thx in advance "It takes a minimum of redesign to turn a crucifix into a pogo stick"
**Sigh** Nevermind. I figured it out. I had to fake up a WM_NOTIFY to the undocumented control that houses the listbox that contains the file names. I had to fake a left click and populate an NM_LISTVIEW structure and pass it into the SHELLDEF_view window message processor. The fake was to tell it the message was from its list control. Send 2 messages to order in descending order. Whatta zoo. "It takes a minimum of redesign to turn a crucifix into a pogo stick"