I open an open file dialog using GetOpenFileName
function. I'm making a handler function that will center the dialog window inside the owner window. I center the dialog on CDN_INITDONE
notification.
Currently, it seems that Windows remembers last dialog position for desktop apps and overrides my dialog coordinates. How to reset that last remembered position so that I can check centering will work for my users?
I thought about running a test using a different user or virtual machine but this isn't very convenient. Unfortunately, searching in the registry for myexecutable.exe returns nothing.
I'm running Windows 8.