This is a really weird bug, never come across anything like this before.
When you go to File >> Open in the release build of my program, it shows the Open Dialog sized to fill the entire screen. It's not maximized as there is no maximize or restore button - just sized to the screen.
The open dialog is resized to exactly fill whichever screen the program is running on (using it with dual monitors).
It has what looks like a sizing border and when you hover the mouse over it you get the <-> type arrow which usually means you can resize it - but it won't resize. Also if you click and drag on the caption (which in Windows 7 usually works even with maximized windows) - you can't drag it onto the other screen. It is just fixed in position until you dismiss it.
THIS DEPENDS ONLY ON THE NAME OF THE EXECUTABLE FILE
If I rename the release build to some other name the open dialog works fine as it always did.
It is also retrospective - affects all my previous builds of the program which never had this issue before.
EVEN AFFECTS OTHER PROGRAMS WHEN RENAMED TO SAME NAME AS MY PROGRAM
Also - most mysterious of all - even affects other programs by other software authors as well.
I tried renaming notepad++ for instance to "Bounce Metronome.exe" and it also shows the Open dialog maximized - and reverts to normal behaviour when you rename the .exe file to some other name.
I am using Windows 7, and I have Norton AV installed on the computer (in case it is relevant).
Tried it on another computer, with the latest build, and it behaves normally. And had no error reports from my users about this.
So - seems to be some peculiarity of my computer setup - but what - and what causes it? Anyone know what it is?
Obviously I can work around it by just giving my program another name when using it on this computer - but - want to understand what is going on.
I don't even know how to show an Open dialog like this if I wanted to.
BTW for what it is worth, the dialog is created using OPENFILENAME structure and the GetOpenFileName routine
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646927(v=vs.85).aspx[
^]
Has anyone seen anything like this before?
Robert