how can I get the message of WM_LBUTTONUP of the Vertical Scroll Bar
-
void CMyListCtrl::OnNcLButtonDown(UINT nHitTest, CPoint point) { // TODO: Add your message handler code here and/or call default if(HTVSCROLL == nHitTest) MessageBox("LButtonDown On Vertical Scroll");//Here is OK CListCtrl::OnNcLButtonDown(nHitTest, point); } void CMyListCtrl::OnNcLButtonUp(UINT nHitTest, CPoint point) { // TODO: Add your message handler code here and/or call default if(HTVSCROLL == nHitTest) MessageBox("LButtonUp On Vertical Scroll");//No MessageBox. what should I do?? CListCtrl::OnNcLButtonUp(nHitTest, point); }
-
void CMyListCtrl::OnNcLButtonDown(UINT nHitTest, CPoint point) { // TODO: Add your message handler code here and/or call default if(HTVSCROLL == nHitTest) MessageBox("LButtonDown On Vertical Scroll");//Here is OK CListCtrl::OnNcLButtonDown(nHitTest, point); } void CMyListCtrl::OnNcLButtonUp(UINT nHitTest, CPoint point) { // TODO: Add your message handler code here and/or call default if(HTVSCROLL == nHitTest) MessageBox("LButtonUp On Vertical Scroll");//No MessageBox. what should I do?? CListCtrl::OnNcLButtonUp(nHitTest, point); }
Do you see MSDN this event when you press left mouse button or release left mouse button in noneclient area if you click in scrollbar in your application you can see action from this event And you need to OnNcLButtonUp or WM_LBUTTONUP
-
Do you see MSDN this event when you press left mouse button or release left mouse button in noneclient area if you click in scrollbar in your application you can see action from this event And you need to OnNcLButtonUp or WM_LBUTTONUP
-
no its very simple you can click in scrollbar from your application and you get your messagebox