about WM_NOTIFY for CTreeCtrl
-
for my project , i have a CView contain a CTreeCtrl member. i want to cope with the tree notify message in the view. for instance : msg: TVN_ITEMEXPANDED CView::OnNotify(wParam , lParam , lpResult){ } as far as i know wParam as idCtrl, lParam as LPNMHDR strcut point. but msdn says TVN_ITEMEXPANDED pnmtv = (LPNMTREEVIEW) lParam . what really the lParam refer to?? help me. love program
-
for my project , i have a CView contain a CTreeCtrl member. i want to cope with the tree notify message in the view. for instance : msg: TVN_ITEMEXPANDED CView::OnNotify(wParam , lParam , lpResult){ } as far as i know wParam as idCtrl, lParam as LPNMHDR strcut point. but msdn says TVN_ITEMEXPANDED pnmtv = (LPNMTREEVIEW) lParam . what really the lParam refer to?? help me. love program
I'm not into MFC but pnmtv = (LPNMTREEVIEW) lParam means you're casting the lParam into a pointer to an NMTREEVIEW structure. That structure probably contains a TVITEM structure as well,. I would guess you need to examine the state of that TVITEM. What's the difference between a C++ programmer and God? God knows he's not a C++ programmer : anon
-
I'm not into MFC but pnmtv = (LPNMTREEVIEW) lParam means you're casting the lParam into a pointer to an NMTREEVIEW structure. That structure probably contains a TVITEM structure as well,. I would guess you need to examine the state of that TVITEM. What's the difference between a C++ programmer and God? God knows he's not a C++ programmer : anon