Prob receiving notification for CTreeCtrl
I have a class derived from CTreeCtrl. Now I need to expand/collapse
this tree, I have 2 ways.
One is through the UI, I click the botton of the root.
Other way is I press a btn, which in turn will call
(treeObj)->Expand(TVS_EXPAND);(Please ignore the syntax, as long as it
conveys the message)
Through method 1, I am able to recieve notifications on TVN_SELCHANGING
and TVN_ITEMEXPANDING wherein I can check the action, say
(treeView->action == TVE_COLLAPSE).
However the notifications I am not able to recieve when I use method2,
is this intended effect?
I have a event handler which I do not want to rewrite for this action,
but it seems its unavoidable.