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. SetSystemCursor in VC++

SetSystemCursor in VC++

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

    hi, I use SetSystemCursor to change the normal mouse cursor to something else, and 2 seconds later change it back to it's original. I can change the cursor the first time. but the second change does not happen until the first change is called once again. Please advise. thanks a million:rolleyes:, see below. ps. CopyCursor doesn't seem to work. this is inside a function that is called every 4 seconds: at the end of 1 second change mouse cursor from normal to appstarting hCurCopy = LoadCursor(NULL, IDC_APPSTARTING); SetSystemCursor(hCurCopy,OCR_NORMAL); later in the code at the end of 3 seconds change cursor from appstaring to normal hCurNorm = LoadCursor(NULL,IDC_ARROW); SetSystemCursor(hCurNorm,OCR_APPSTARTING)

    E 1 Reply Last reply
    0
    • 5 5iveboy

      hi, I use SetSystemCursor to change the normal mouse cursor to something else, and 2 seconds later change it back to it's original. I can change the cursor the first time. but the second change does not happen until the first change is called once again. Please advise. thanks a million:rolleyes:, see below. ps. CopyCursor doesn't seem to work. this is inside a function that is called every 4 seconds: at the end of 1 second change mouse cursor from normal to appstarting hCurCopy = LoadCursor(NULL, IDC_APPSTARTING); SetSystemCursor(hCurCopy,OCR_NORMAL); later in the code at the end of 3 seconds change cursor from appstaring to normal hCurNorm = LoadCursor(NULL,IDC_ARROW); SetSystemCursor(hCurNorm,OCR_APPSTARTING)

      E Offline
      E Offline
      erkanina
      wrote on last edited by
      #2

      Use following codes //... Set Your Cursor SetCapture(); SetCursor(AfxGetApp()->LoadCursor(IDC_APPSTARTING)); //... Restore to old ReleaseCapture(); SetCursor(AfxGetApp()->LoadCursor(IDC_ARROW));

      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