CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Mar 2002
    Location
    Chicago, IL
    Posts
    255

    WM_GETTITLEBARINFOEX has wrong button rects

    Hi everyone -

    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?
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured