Print Page | Close Window

Double preview notification - XTP_GN_PREVIEWCHANGE

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=16019
Printed Date: 16 November 2024 at 10:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Double preview notification - XTP_GN_PREVIEWCHANGE
Posted By: rdhd
Subject: Double preview notification - XTP_GN_PREVIEWCHANGE
Date Posted: 15 January 2010 at 4:56pm
I have noticed that a gallery seems to get the XTP_GN_PREVIEWCHANGE twice in some circumstances.
 
The first notification comes from OnMouseHover and is expected. The second notification comes from CXTPControlGallery::HideSelection.
 
To see this, I set a breakpoint in my notification handler and popup my gallery. Then I move the mouse over an item in the gallery and the OnMouseHover code sends me the notificatoin. Then if I hit the escape key, HideSelection calls me again.
 
We have some pretty expensive display operations that are executing and I wonder why the call is being made from both places. And I wonder how to avoid the duplicate call.



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