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. Hide Mouse

Hide Mouse

Scheduled Pinned Locked Moved C / C++ / MFC
discussion
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
    Andrew Walker
    wrote on last edited by
    #1

    Is there a simple way to hide the mouse on entering a window and show it on exiting it. I'm assuming there is a windows message that i need to handle, but I'm not sure which one. [edit]ShowCursor does some of what I want, but I want the cursor to show in the menu-bar so I can click the minimize/maximize button[/edit]


    If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts you aim; Yours is the Earth and everything that's in it. Rudyard Kipling

    R 1 Reply Last reply
    0
    • A Andrew Walker

      Is there a simple way to hide the mouse on entering a window and show it on exiting it. I'm assuming there is a windows message that i need to handle, but I'm not sure which one. [edit]ShowCursor does some of what I want, but I want the cursor to show in the menu-bar so I can click the minimize/maximize button[/edit]


      If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts you aim; Yours is the Earth and everything that's in it. Rudyard Kipling

      R Offline
      R Offline
      Robert A T Kaldy
      wrote on last edited by
      #2

      You probably call ShowCursor in the main frame. Try to call it in the child window (or, generally, in the window, which occupy the client area of main window) Robert-Antonio "CRAY is the only computer, which runs an endless loop in just 4 hours"

      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