[Win32 API]Treeview control notify thingy...help :-(
OK, I know how to add/remove nodes in a tree view.
But I''m at a loss when it come to the whole WM_NOTIFY
thing. I don''t understand how the tree view handles
messages sent to it...I''ve gotten as far as the
TVN_SELCHANGE in the WM_NOTIFY...How do I find
what node is selected? Does any one have any good
commented code or something...or can anyone point
me in the right direction?
Thanks.
One Must Fall: Battlegrounds
A new kind of 3D fighting game (PC)
www.omf.com
If you know that you have gotten the TVN_SELCHANGED notification, you should be able to cast the lparam to a pointer to a NM_TREEVIEW structure and access the itemNew member.
Dealing with the common controls with the straight WIN32 API calls can get a little hairy fast.. You might try using some of the TreeView_Get/Set macro''s to get things working, and to keep your code a little cleaner.
HTH,
-Z
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement