Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Adding to menu without redraw
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding to menu without redraw

 Post Reply Post Reply
Author
Message
rag6419 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote rag6419 Quote  Post ReplyReply Direct Link To This Post Topic: Adding to menu without redraw
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rag6419 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 March 2006
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote rag6419 Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.171 seconds.