While porting our Win32 API application from Visual C++ 2008/2010 to Visual C++ 2012 we found strange difference in dialog box behavior on Windows 7 with Aero. Dialog boxes in applications compiled with Visual C++ 2012 are smaller by 5 pixels on each side
(the whole window frame now sits inside the window rectangle).
The issue can be reproduced using default C++ application sample with small change in About dialog box / WM_INITDIALOG handler. We added MoveWindow(hDlg, 0, 0, 300, 150, TRUE) call, but the same can be reproduced using SetWindowPos(). VC2008 vs VC2012 Differences are visible on attached screenshots.
Is there some option (for example some manifest change) to return to the old Visual C++ 2008/2010 behavior?
Visual C++ 2008 sample:
Visual C++ 2012 sample: