Results 1 to 2 of 2

Thread: Sort GetOpenFilename -- Is this possible??

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    Kentucky
    Posts
    56

    Sort GetOpenFilename -- Is this possible??

    I have a program that is using the GetOpenFilename Common Dialog box (API). I need to be able to set it to show the details view (list view is default) and sort according to the date.

    These are the options that I see to acheive this in order of my preference.

    1. Set something so that the changes that the user makes will be automatically saved for the next time the dialog box is opened.

    2. Retrieve a message from the dialog box to indicate what the user has changed then I can save that in the registry. Then the next time the dialog box is opened my program will retrieve the setting from the registry and set the dialog box to this. This option requires two things that I don't know how to do. First, get the message from the dialog box when the settings are changed. Second, set the settings.

    3. Just set what I think it should be (details view sorted by date).

    If you can help with any part of this it would be appreciated.

    Kevin

  2. #2

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    Kentucky
    Posts
    56
    Is there any way to do this with a Hook and a SendMessage? I already have a hook to center the Dialog Box on the screen(http://www.mvps.org/vbnet/code/hooks...ookadvtext.htm ), but I don't know what to put in the SendMessage.

    Let me know if you have any ideas.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width