Advertisement

[Win32 API]Treeview control notify thingy...help :-(

Started by March 27, 2001 07:25 AM
1 comment, last by Clash Rocker 23 years, 10 months ago
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



Advertisement
Hey thanks for the help :-)
You''re a Saint.
My Treeview is only a little simple thing, but your help
made it as easy as Visual Basic.

www.omf.com

This topic is closed to new replies.

Advertisement