Question:
Does anyone know how to change the current directory of an already running open file dialog?
Details:
I have a customized open file dialog (using a custom template to add extra controls) that also has all the validation, existing checks, and creation tests turned off (via the OpenFileName flags).
Turning those things off disables the built-in behavior of the dialog that will cause it to change the currently displayed folder if the user types a folder name into the "file name" combo box and hits the enter key.
I would like to add that behavior back. I can detect when this happens via the hook procedure. I've hidden the OK button, turned off it's accelerator, and put my own "select" button on the control. This means that the only time I get a CDN_FILEOK message is when the user hits enter in the text box after typing.
I can't, however, figure out how to programatically tell the dialog to change the current directory.
I was thinking that I might be able to accomplish this by sending some sort of a message to the SHELLDLL_DefView control in the window, but I haven't been able to find any documentation on it.