![]() |
CXTPCommandBars::RecalcFrameLayout question |
Post Reply ![]() |
Author | |
rdhd ![]() Senior Member ![]() ![]() Joined: 13 August 2007 Location: United States Status: Offline Points: 899 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |