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
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