Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how can I get the message of WM_LBUTTONUP of the Vertical Scroll Bar

how can I get the message of WM_LBUTTONUP of the Vertical Scroll Bar

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yingkou
    wrote on last edited by
    #1

    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); }

    H 1 Reply Last reply
    0
    • Y yingkou

      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); }

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      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

      Y 1 Reply Last reply
      0
      • H Hamid Taebi

        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

        Y Offline
        Y Offline
        yingkou
        wrote on last edited by
        #3

        I have done what you said,result is failure

        H 1 Reply Last reply
        0
        • Y yingkou

          I have done what you said,result is failure

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          no its very simple you can click in scrollbar from your application and you get your messagebox

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups