Print Page | Close Window

Adding to menu without redraw

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=4607
Printed Date: 05 July 2024 at 10:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding to menu without redraw
Posted By: rag6419
Subject: Adding to menu without redraw
Date Posted: 18 July 2006 at 11:04am
I'm dynamically adding to a menu when it pops up (adding a list of open windows), but there is a flicker from adding each item.  I tried overriding the CXTPCommandBar class and adding a public accessor to LockRedraw and UnlockRedraw, but it is still flickering.

I was wondering if there is another way I can keep the menu from drawing until all items have been added to the menu.



Replies:
Posted By: Oleg
Date Posted: 18 July 2006 at 2:49pm
Hello,
Recommended way is to create additional control that will fill new controls
see Samples\CommandBars\DynamicPopups and sources of ControlFavorites.cpp.
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rag6419
Date Posted: 18 July 2006 at 5:41pm
Thanks.  I ended up just creating entries in the menu (since I do have a limit to the number of "dynamic" items), then only show them after I update the captions.  Then hide the items I don't want to be shown.  No more flicker and looks great!



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