Click to See Complete Forum and Search --> : TVN_SELCHANGED, treeview question


Ali Imran
July 29th, 2005, 06:56 PM
I have searched alot but could not find answer.

Question:

How to handle TVN_SELCHANGED message in window procedure when selection is changed, and how do I know this message is forwarded ?

1. if(message==WM_NOTIFY and HIWORD(wParam) == TVN_SELCHANGED and LOWORD(wParam) == myTreeID) ?

2. if(message==WM_COMMAND and HIWORD(wParam) == TVN_SELCHANGED and LOWORD(wParam) == myTreeID) ?


3. if(message==TVN_SELCHANGED and LOWORD(wParam) == myTreeID) ?


where myTreeID is the id of treeview control.

please direct me.

regards

kirants
July 29th, 2005, 10:26 PM
Lookup MSDN on TVN_SELCHANGED and the answer is right there.

Ali Imran
July 29th, 2005, 11:10 PM
Sory to say - Non- satisfactory answer.
I already have mentioned that I have looked every possible link on web including msdn.
The definitions are not clear to me.

btw, thanks os much for the quick response.

Anyone else willing to help.

kirants
July 30th, 2005, 12:21 AM
Ok. Not to be harsh, but , if you can paste the contents from MSDN that you read here and point out why your confusion arose, that would be good. Being able to read MSDN is very important. This is a one-stop resource for straightforward topics like the one you are discussing now.

Ali Imran
July 30th, 2005, 12:29 AM
Not a problem sir. Your suggestion is highly apprecaited.
Answer to my question is within this site
http://www.codeguru.com/Cpp/controls/treeview/misc-advanced/article.php/c3993/

Again thanks for your time.

regards

kirants
July 30th, 2005, 12:32 AM
good luck :wave: