CTreeCtrl and WM_LBUTTONUP
-
Hi, for some reason I never receive the WM_LBUTTONUP message. I do receive the WM_LBUTTONDOWN message. Is this normal or I'm doing something wrong??? afx_msg void OnLButtonUp(UINT nFlags, CPoint point); void CVRGlobalView::OnLButtonUp(UINT nFlags, CPoint point) { CTreeView::OnLButtonUp(nFlags, point); } Thanks! :) -- modified at 9:30 Thursday 11th May, 2006
-
Hi, for some reason I never receive the WM_LBUTTONUP message. I do receive the WM_LBUTTONDOWN message. Is this normal or I'm doing something wrong??? afx_msg void OnLButtonUp(UINT nFlags, CPoint point); void CVRGlobalView::OnLButtonUp(UINT nFlags, CPoint point) { CTreeView::OnLButtonUp(nFlags, point); } Thanks! :) -- modified at 9:30 Thursday 11th May, 2006
LukeV wrote:
void CVRGlobalView::OnLButtonUp(UINT nFlags, CPoint point) { CTreeView::OnLButtonUp(nFlags, point); }
What are you trying to do here exactly ? And also, where are you releasing the mouse button ? Above the control ? And you want to know when the mouse is released above the tree control ? Then, isn't it a notification message for the tree control itself ? I mean, instead of checking if the mouse is released above your view, check if the mouse is released above the control.
-
Hi, for some reason I never receive the WM_LBUTTONUP message. I do receive the WM_LBUTTONDOWN message. Is this normal or I'm doing something wrong??? afx_msg void OnLButtonUp(UINT nFlags, CPoint point); void CVRGlobalView::OnLButtonUp(UINT nFlags, CPoint point) { CTreeView::OnLButtonUp(nFlags, point); } Thanks! :) -- modified at 9:30 Thursday 11th May, 2006
Common controls send
NM_CLICK
- try handling that message instead.--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ