Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Icons missing after refresh
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icons missing after refresh

 Post Reply Post Reply
Author
Message
zeiga View Drop Down
Newbie
Newbie


Joined: 21 March 2011
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote zeiga Quote  Post ReplyReply Direct Link To This Post Topic: Icons missing after refresh
    Posted: 29 March 2011 at 6:11pm
Hi,

I have a Dialog which derived from CXTPSizableDialogBase. On the top of the dialog, I added a CXTPToolBar with several CXTPControlButton icons.

My problem is: if I do a refresh (or F5), the icons will be gone. But if I hover my mouse over them, the icons re-appear. Can anybody tell me what is going wrong? Any helps are greatly appropriated. 

Thanks.
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: 30 March 2011 at 2:51am
Hi,

Think its something in your code. Send to support related files to review what you do.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
andre View Drop Down
Groupie
Groupie


Joined: 09 March 2005
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote andre Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2011 at 11:17am
Same problem, but with the toolbars on the main window. somehow the icons disapear...

it's very complicated to send the code...:(


Back to Top
zeiga View Drop Down
Newbie
Newbie


Joined: 21 March 2011
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote zeiga Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2011 at 5:55pm
Thanks for your reply. I actually solved this re-painting issue by adding OnEraseBkgnd(). Inside the handler, I invalidate the whole command bars like this:

CXTPCommandBars* pCommandBars = GetCommandBars();
pCommandBars->InvalidateCommandBars();

It might be costly to do it each time, but at least it works. 
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.203 seconds.