Print Page | Close Window

CXTPCommandBars::RecalcFrameLayout question

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14825
Printed Date: 27 February 2025 at 3:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPCommandBars::RecalcFrameLayout question
Posted By: rdhd
Subject: CXTPCommandBars::RecalcFrameLayout question
Date 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net