Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPCommandBars::RecalcFrameLayout question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPCommandBars::RecalcFrameLayout question

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 899
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: CXTPCommandBars::RecalcFrameLayout question
    Posted: 24 July 2009 at 4:54pm
In RecalcFrameLayout, the method is checking to see if the "m_pFrame" member (set by calling SetSite) is a frame window. If it is not, the code gets the client rect and sends a WM_SIZE message to the m_pFrame member.
 
Since the client rect is obtained from the m_pFrame, sending WM_SIZE is apparently not being done to actually change the size of the window. So what is the purpose of sending the WM_SIZE message?
 
In case you are wondering why I care, I am trying to figure out why the popup menu that TrackPopupMenuEx (on CCommandBars) sometimes results in a failure to properly update the area under the menu once it is dismissed. Changing my Vista display settings seems to affect the update issue. Perhaps this is a "trick" to invalidate the site window? To what purpose?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.059 seconds.