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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Change mouse pointer...

Change mouse pointer...

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • M Offline
    M Offline
    m_mun
    wrote on last edited by
    #1

    HI all, I am new in this field. I have a application (not dialog based, i want to change the default mouse cursor as a pen (as paint). There are no this type of cursor. How can i do this? Regards Shaheen THANKS TO ALL

    T _ _ 3 Replies Last reply
    0
    • M m_mun

      HI all, I am new in this field. I have a application (not dialog based, i want to change the default mouse cursor as a pen (as paint). There are no this type of cursor. How can i do this? Regards Shaheen THANKS TO ALL

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      use SetCursor api! read more about it in MSDN documentation

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
      Never mind - my own stupidity is the source of every "problem" - Mixture

      cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

      1 Reply Last reply
      0
      • M m_mun

        HI all, I am new in this field. I have a application (not dialog based, i want to change the default mouse cursor as a pen (as paint). There are no this type of cursor. How can i do this? Regards Shaheen THANKS TO ALL

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        See SetCursor[^]

        You need to google first, if you have "It's urgent please" mentioned in your question. ;-)_AnShUmAn_

        1 Reply Last reply
        0
        • M m_mun

          HI all, I am new in this field. I have a application (not dialog based, i want to change the default mouse cursor as a pen (as paint). There are no this type of cursor. How can i do this? Regards Shaheen THANKS TO ALL

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          First you have to create the cursor using the resource editor using your drawing skills.

          «_Superman_» I love work. It gives me something to do between weekends.

          S 1 Reply Last reply
          0
          • _ _Superman_

            First you have to create the cursor using the resource editor using your drawing skills.

            «_Superman_» I love work. It gives me something to do between weekends.

            S Offline
            S Offline
            sujeet
            wrote on last edited by
            #5

            Use the following APIs. First load the required cursor using either. 1) LoadCursor(NULL, IDC_ARROW);//User for arrow cursor 2) HCURSOR LoadCursorFromFile( LPCTSTR lpFileName); //Give the name of the .CUR file (Pen cursor file)as parameter. Both these functions return HCURSOR. Then set this cursor using API. HCURSOR SetCursor(HCURSOR hCursor); Thanks, Sujeet.

            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