CTreeCtrl::OnLButtonUp doesn't get called
-
Hi, I derived a class from CTreeCtrl and added a handler for OnLButtonUp. But clicking on an Item never gets it fired. After some debugging I found that it only gets called if you don't click on an Item, but within the client area or if you doubleclick an item. Couldn't find anything in the MSDN. van Padoea.
-
Hi, I derived a class from CTreeCtrl and added a handler for OnLButtonUp. But clicking on an Item never gets it fired. After some debugging I found that it only gets called if you don't click on an Item, but within the client area or if you doubleclick an item. Couldn't find anything in the MSDN. van Padoea.
are you transfering buttondown to base class? t!
-
are you transfering buttondown to base class? t!
I do but that doesn't matter because it won't come there anyway!
void CSelectionTree::OnLButtonUp(UINT nFlags, CPoint point) { UINT uFlags = 0; <-- will not reach this! HTREEITEM hti = HitTest(point, &uFlags); if( uFlags & TVHT_ONITEMSTATEICON ) { if(GetCheck(hti)) SetItemImage(hti, 2, 2); else SetItemImage(hti, 0, 0); } CTreeCtrl::OnLButtonUp(nFlags, point); }
-
I do but that doesn't matter because it won't come there anyway!
void CSelectionTree::OnLButtonUp(UINT nFlags, CPoint point) { UINT uFlags = 0; <-- will not reach this! HTREEITEM hti = HitTest(point, &uFlags); if( uFlags & TVHT_ONITEMSTATEICON ) { if(GetCheck(hti)) SetItemImage(hti, 2, 2); else SetItemImage(hti, 0, 0); } CTreeCtrl::OnLButtonUp(nFlags, point); }
i know you speaking about but i spoke about down message (or maybe any pretranslate, ...) make minimal tree example and it must work t!