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 hide mouse globally ?

How to hide mouse globally ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
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 a dialog based MFC application in which I want to hide mouse globally. I mean to say when I hide mouse it gets hidden but when i move my mouse over some other application or some other window, it gets displayed. What I want to do is, once I hide my mouse, no matter where I move it, it should not be shown..... Or is there any function through which I can disable my mouse ? Regards Amarelia Maehsh Gujarat India

    S 1 Reply Last reply
    0
    • A Amarelia

      Hi I have a dialog based MFC application in which I want to hide mouse globally. I mean to say when I hide mouse it gets hidden but when i move my mouse over some other application or some other window, it gets displayed. What I want to do is, once I hide my mouse, no matter where I move it, it should not be shown..... Or is there any function through which I can disable my mouse ? Regards Amarelia Maehsh Gujarat India

      S Offline
      S Offline
      Sebastian Pipping
      wrote on last edited by
      #2

      i don't know of a funtion doing this but have you tried using a global mousehook? are you familiar with window hooks? i copuld imagine catching WM_SETCURSOR will do this but i'm not sure. some links: WM_SETCURSOR SetWindowsHookEx() MouseProc() good luck! ___________________________________________ http://www.hartwork.org

      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