Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Double preview notification - XTP_GN_PREVIEWCHANGE
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Double preview notification - XTP_GN_PREVIEWCHANGE

 Post Reply Post Reply
Author
Message
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Double preview notification - XTP_GN_PREVIEWCHANGE
    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.
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.156 seconds.