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. ListControl

ListControl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 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.
  • A Offline
    A Offline
    Anilkumar K V
    wrote on last edited by
    #1

    How to select an item from ListControl on mouse moving over it?

    H P 2 Replies Last reply
    0
    • A Anilkumar K V

      How to select an item from ListControl on mouse moving over it?

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

      Is NM_HOVER is helpfuls?


      WhiteSky


      1 Reply Last reply
      0
      • A Anilkumar K V

        How to select an item from ListControl on mouse moving over it?

        P Offline
        P Offline
        prasad_som
        wrote on last edited by
        #3

        Use Following code,

        void CMyListCtrl::OnMouseMove(UINT uFlags, CPoint point)
        {
        int nItem = HitTest(point, &uFlags);
        if (uFlags & LVHT_ONITEM)
        {
        SetItem(nItem, 0, LVIF_STATE, NULL, 0, LVIS_SELECTED,
        LVIS_SELECTED, 0);
        }
        CListCtrl::OnMouseMove(uFlags, point);
        }

        Prasad Notifier using ATL | Operator new[],delete[][^]

        A 1 Reply Last reply
        0
        • P prasad_som

          Use Following code,

          void CMyListCtrl::OnMouseMove(UINT uFlags, CPoint point)
          {
          int nItem = HitTest(point, &uFlags);
          if (uFlags & LVHT_ONITEM)
          {
          SetItem(nItem, 0, LVIF_STATE, NULL, 0, LVIS_SELECTED,
          LVIS_SELECTED, 0);
          }
          CListCtrl::OnMouseMove(uFlags, point);
          }

          Prasad Notifier using ATL | Operator new[],delete[][^]

          A Offline
          A Offline
          Anilkumar K V
          wrote on last edited by
          #4

          Thanks Prasad

          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