Print Page | Close Window

Icons missing after refresh

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=18137
Printed Date: 01 May 2025 at 7:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icons missing after refresh
Posted By: zeiga
Subject: Icons missing after refresh
Date 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.



Replies:
Posted By: Oleg
Date 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


Posted By: andre
Date 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...:(




Posted By: zeiga
Date 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. 



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