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 Disable/Hide Mouse Cursor ?

How to Disable/Hide Mouse Cursor ?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++comperformancehelp
2 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.
  • A Offline
    A Offline
    Amarelia
    wrote on last edited by
    #1

    Hi I have asked the same question but I didn't get any satisfactory answer, so I am again posting it here.... I have a dialog based MFC application in which I have used Microsoft Web Browser ActiveX control through which I allow user to navigate the sites. Now if I want to hide cursor, I have used SetCursor(NULL) and also tried ShowCursor(FALSE) but the problem is : When I move my mouse with little bit of speed, it shows cursor and then again hides...what seems to be the problem, HOw to overcome it ? Or is there a way to disable mouse ? So I don't have problem of hiding cursor. Thankx in Advance Amarelia Maehsh Gujarat India

    M 1 Reply Last reply
    0
    • A Amarelia

      Hi I have asked the same question but I didn't get any satisfactory answer, so I am again posting it here.... I have a dialog based MFC application in which I have used Microsoft Web Browser ActiveX control through which I allow user to navigate the sites. Now if I want to hide cursor, I have used SetCursor(NULL) and also tried ShowCursor(FALSE) but the problem is : When I move my mouse with little bit of speed, it shows cursor and then again hides...what seems to be the problem, HOw to overcome it ? Or is there a way to disable mouse ? So I don't have problem of hiding cursor. Thankx in Advance Amarelia Maehsh Gujarat India

      M Offline
      M Offline
      mark novak
      wrote on last edited by
      #2

      Since your trying to take complete control over the system, you should act like it. You have to be firm. I'd say set up a system wide hook listening to WM_MOUSEMOVE messages, and just throw them all away. The cursor should no longer move. Look at SetWindowsHookEx(), remember your message pump must reside outside your application in a DLL if it's going to be global.

      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