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. ?Mouse position

?Mouse position

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

    How to get mouse position? plz /\|-||\/|/\|)

    D R 2 Replies Last reply
    0
    • H Halawlaws

      How to get mouse position? plz /\|-||\/|/\|)

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Provide a handler for the WM_MOUSEMOVE message. The position is in the LPARAM parameter.


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      H 1 Reply Last reply
      0
      • D David Crow

        Provide a handler for the WM_MOUSEMOVE message. The position is in the LPARAM parameter.


        "One must learn from the bite of the fire to leave it alone." - Native American Proverb

        H Offline
        H Offline
        Halawlaws
        wrote on last edited by
        #3

        at last u came david thx /\|-||\/|/\|)

        T 1 Reply Last reply
        0
        • H Halawlaws

          at last u came david thx /\|-||\/|/\|)

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          Halawlaws wrote: at last u came david thx if you had asked this better from the beginning, you would certainly get the correct answer earlier...

          void CDlgStatusBarDlg::OnMouseMove(UINT nFlags, CPoint point) {
          CString s;
          s.Format("X=%d Y=%d",point.x,point.y);
          m_bar.SetPaneText(0,s);
          CDialog::OnMouseMove(nFlags, point);
          }


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          D 1 Reply Last reply
          0
          • H Halawlaws

            How to get mouse position? plz /\|-||\/|/\|)

            R Offline
            R Offline
            Ravi Bhavnani
            wrote on last edited by
            #5

            GetCursorPos() /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

            1 Reply Last reply
            0
            • T toxcct

              Halawlaws wrote: at last u came david thx if you had asked this better from the beginning, you would certainly get the correct answer earlier...

              void CDlgStatusBarDlg::OnMouseMove(UINT nFlags, CPoint point) {
              CString s;
              s.Format("X=%d Y=%d",point.x,point.y);
              m_bar.SetPaneText(0,s);
              CDialog::OnMouseMove(nFlags, point);
              }


              TOXCCT >>> GEII power
              [toxcct][VisualCalc]

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              toxcct wrote: if you had asked this better from the beginning, you would certainly get the correct answer earlier... The same question was asked here. No one responded.


              "One must learn from the bite of the fire to leave it alone." - Native American Proverb

              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