![]() |
Adding to menu without redraw |
Post Reply ![]() |
Author | |
rag6419 ![]() Newbie ![]() ![]() Joined: 07 March 2006 Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
rag6419 ![]() Newbie ![]() ![]() Joined: 07 March 2006 Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() |
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!
|
|
![]() |
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 |