Print Page | Close Window

excessive updates causing flashing issues

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=8044
Printed Date: 21 November 2024 at 12:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: excessive updates causing flashing issues
Posted By: rdhd
Subject: excessive updates causing flashing issues
Date Posted: 17 September 2007 at 11:23am
I posted this eariler but got no reply so I thought I'd try again since we have a big demo coming up to showcase what codejock has gotten us. Unfortunately the code mentioned below is causing the demo to look pretty bad and we need some sort of response on what is going on
. In particular, is it a bug or not. If not, why is the entire display being updated when a hot item changes. At this point, we are about to simply start commenting out code because the effects of constantly updating the entire window makes the demo look really really bad.
 
 
I am actually experiencing a number of issues with flickering/flashing windows. For the task panel, I have tracked the problem to CXTPTaskPanel::SetHotItem. When the hot item changes, the method makes this call that invalidates the entire client area:

Invalidate(FALSE);

Likewise I have the same issue with XTPPopupControl. When the HitTest call returns an item, CXTPPopupControl calls RedrawControl and RedrawControl does an Invalidate(FALSE).

What is the reason for invalidating the entire window? Can I simply comment the code out with no ill side-effects?



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