-
Common Dialogs
Howdy, a very simple question (hope there's a simple answer!)
Using the GetOpenFileName() and GetSaveFileName() common dialogs, how do you get the dialogs to appear in the centre of the screen rather than in the top left corner?
Thanks in advance,
dom
-
Window Ownership
Did you set the "HWND hwndOwner" and "HINSTANCE hInstance" variables in the OPENFILENAME struct? If so, I believe the dialog should center on the owners window.
-
I don't think you can set the position explicitly. I'm currently working the SHBrowseFolder call & there isn't any way to set that.
Rather the dialogs will appear in a sensible location if you set the owner window handle.
-
Yes, I think thats right. Ah well, thanks for the help anyways!
dt