I'm trying to make use of the WM_GETTITLEBARINFOEX message on a Windows 7 machine. It seems however that the sizes for the Minimize, Maximize, and Close buttons are incorrect until the user resizes the window. See the attached bitmap. I'm outlining the rect for each button (in green) and the rect for the titlebar (in red). The first image shows the data I get after the window is launched. The second image shows the data I get after I resize the window just slightly. It seems like the rects for the system buttons are correctly determined only after a resize. Does this make sense to anyone? Is there a way I can force the correct values to be determined without a resize?
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.