Print Page | Close Window

Popup Menu Repaint Issue

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=4379
Printed Date: 11 May 2025 at 3:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Popup Menu Repaint Issue
Posted By: cgaskill
Subject: Popup Menu Repaint Issue
Date Posted: 08 June 2006 at 8:29pm
I am having a problem where the popup menu from TrackPopupMenu is not repainting after it closes.

Before

After

We are a regular DLL that lives inside of a Tab in a much larger application that calls into us via API calls.  We create an CXTPFrameWnd as a child window and all our code is built on top of all that.  Our CXTPFrameWnd starts with the Blue Gradient Caption bar, includes the CXTPToolBar and the CXTPReportControl.

Is there some windows message I need to be handling?  The odd thing is that if you click back in the ReportControl the menu disappears with no repaint issue.  However, if you click outside our component (on the green "Cardiovacular" caption bar) then we get the repaint issue.


06/12 Update

Not sure if anyone is looking at or interested in this but here I go.  If I trace through the CodeJock code and us Spy++ here is what I get.  The interesting thing is right after the TrackPopupMenu call there is no repaint issue.  It looks as I want it to look.  Using Spy++ the next message the window gets is WM_CONTEXTMENU followed by WM_IDLEUPDATECMDUI messages.  This popup menu ends up covering another window (derived from CXTPPropertyGrid and managed by CXTPPaneManager)...using Spy++ on this window it's next message after the popup menu goes away is WM_IDLEUPDATECMDUI and up until then it looks okay.  So one would think that WM_IDLEUPDATECMDUI is what is causing my problem but it doesn't make sense to me.

Any ideas out there?



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