Icons missing after refresh |
Post Reply |
Author | |
zeiga
Newbie Joined: 21 March 2011 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Think its something in your code. Send to support related files to review what you do.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
andre
Groupie Joined: 09 March 2005 Status: Offline Points: 27 |
Post Options
Thanks(0)
|
Same problem, but with the toolbars on the main window. somehow the icons disapear...
it's very complicated to send the code...:(
|
|
zeiga
Newbie Joined: 21 March 2011 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
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.
|
|
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 |