Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Tree control produces multiple TVN_SELCHANGED
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tree control produces multiple TVN_SELCHANGED

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

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Tree control produces multiple TVN_SELCHANGED
    Posted: 26 October 2009 at 11:27am

EnableMultiSelect();

Then select multiple items at once. TVN_SELCHANGED will be sent for each item!
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2009 at 11:59am
Another flaw:
 
XTTreeBase.cpp(1652):
UINT_PTR nTimer = m_pTreeCtrl->SetTimer(1, SCROLL_TIMER_PERIOD, NULL); //for scroll
 
Using 1 for your timer is quite greedy. Often you use 1 for custom timers... Took me an hour to figure out why my timer died! :(
PokerMemento - http://www.pokermemento.com/
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.125 seconds.