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. Custom cursor with Win32

Custom cursor with Win32

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 3 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.
  • S Offline
    S Offline
    Steve_
    wrote on last edited by
    #1

    Hi, I would like to make it so that when the cursor is over my window it has a custom look. How can I achieve this with win32? Thanks, Steve

    C N 2 Replies Last reply
    0
    • S Steve_

      Hi, I would like to make it so that when the cursor is over my window it has a custom look. How can I achieve this with win32? Thanks, Steve

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      One way is to handle the WM_SETCURSOR[^] message. A different way would be to specify your own cursor handle when registering a window class.[^].

      > The problem with computers is that they do what you tell them to do and not what you want them to do. <

      1 Reply Last reply
      0
      • S Steve_

        Hi, I would like to make it so that when the cursor is over my window it has a custom look. How can I achieve this with win32? Thanks, Steve

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        wibblewoo wrote:

        I would like to make it so that when the cursor is over my window it has a custom look. How can I achieve this with win32?

        Using cursors![^]

        Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

        S 1 Reply Last reply
        0
        • N Nibu babu thomas

          wibblewoo wrote:

          I would like to make it so that when the cursor is over my window it has a custom look. How can I achieve this with win32?

          Using cursors![^]

          Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

          S Offline
          S Offline
          Steve_
          wrote on last edited by
          #4

          Oh God I don't know how I didn't find that when I was looking. Thanks.

          N 1 Reply Last reply
          0
          • S Steve_

            Oh God I don't know how I didn't find that when I was looking. Thanks.

            N Offline
            N Offline
            Nibu babu thomas
            wrote on last edited by
            #5

            wibblewoo wrote:

            Oh God I don't know how I didn't find that when I was looking.

            MSDN has an interesting set of "Using xxxx" series. If interested type in "Using" into the index edit box and you'll see a bunch of articles.

            Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

            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