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 can I hide mouse pointer when it comes over my window

How can I hide mouse pointer when it comes over my window

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 5 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
    Atif Mushtaq
    wrote on last edited by
    #1

    as in the subject

    L G C M 4 Replies Last reply
    0
    • A Atif Mushtaq

      as in the subject

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      There are methods to change the pointer shape, why not just create a one pixel mouse pointer and use that ? Elaine :rose: The tigress is here :-D

      1 Reply Last reply
      0
      • A Atif Mushtaq

        as in the subject

        G Offline
        G Offline
        Graham Bradshaw
        wrote on last edited by
        #3

        Use the ShowCursor function. Despite its name, it can hide and show the cursor.

        1 Reply Last reply
        0
        • A Atif Mushtaq

          as in the subject

          C Offline
          C Offline
          cmk
          wrote on last edited by
          #4

          Handle WM_SETCURSOR for the window and call SetCursor(NULL). ...cmk Save the whales - collect the whole set

          1 Reply Last reply
          0
          • A Atif Mushtaq

            as in the subject

            M Offline
            M Offline
            Mika Larramo
            wrote on last edited by
            #5

            You can use the ShowCursor Windows API function to show and hide the mouse pointer.

            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