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 to detect mouse over non client area of List box?

How to detect mouse over non client area of List box?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
3 Posts 3 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.
  • S Offline
    S Offline
    Sameer_Thakur
    wrote on last edited by
    #1

    Hi all. I want to scroll the list box contents automatically when user places mouse cursor over scroll bar arrows. The list should keep scrolling its contents as long as user places mouse cursor over the arrows. OnNcHitTest(CPoint point) is also not that helpful as it is called when mouse is moved. I want an event which will be called by framework even when user just keeps his cursor steady over the arrows of List box scrolls. How I can do this? Thanks

    Sameer Thakur

    H W 2 Replies Last reply
    0
    • S Sameer_Thakur

      Hi all. I want to scroll the list box contents automatically when user places mouse cursor over scroll bar arrows. The list should keep scrolling its contents as long as user places mouse cursor over the arrows. OnNcHitTest(CPoint point) is also not that helpful as it is called when mouse is moved. I want an event which will be called by framework even when user just keeps his cursor steady over the arrows of List box scrolls. How I can do this? Thanks

      Sameer Thakur

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

      If you can use of CListCtrl it has a property than when you hold cursor on the item it select this item


      WhiteSky


      1 Reply Last reply
      0
      • S Sameer_Thakur

        Hi all. I want to scroll the list box contents automatically when user places mouse cursor over scroll bar arrows. The list should keep scrolling its contents as long as user places mouse cursor over the arrows. OnNcHitTest(CPoint point) is also not that helpful as it is called when mouse is moved. I want an event which will be called by framework even when user just keeps his cursor steady over the arrows of List box scrolls. How I can do this? Thanks

        Sameer Thakur

        W Offline
        W Offline
        William Wang
        wrote on last edited by
        #3

        U may look up WM_NCHITTEST in MSN, it maybe gives u somehelp.

        life is like a box of chocolate,you never know what you r going to get.

        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