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. CWaitCursor changes back to normal cursor on mouse move event

CWaitCursor changes back to normal cursor on mouse move event

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

    CWaitCursor changes back to normal cursor on mouse move event, before the end of the function CWaitCursor wait;

    C N D 3 Replies Last reply
    0
    • P ptr_Electron

      CWaitCursor changes back to normal cursor on mouse move event, before the end of the function CWaitCursor wait;

      C Offline
      C Offline
      Chandrasekharan P
      wrote on last edited by
      #2

      I think you are still stuck with the same problem . Why are you using CWaitCursor function? wasn't SetCursor() a better solution?

      P 1 Reply Last reply
      0
      • P ptr_Electron

        CWaitCursor changes back to normal cursor on mouse move event, before the end of the function CWaitCursor wait;

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

        ptr_Electron wrote:

        CWaitCursor changes back to normal cursor on mouse move event, before the end of the function

        There is an option in to restore the cursor back, use CWaitCursor::Restore. Also check from where the cursor is being reset to normal cursor.

        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
        • C Chandrasekharan P

          I think you are still stuck with the same problem . Why are you using CWaitCursor function? wasn't SetCursor() a better solution?

          P Offline
          P Offline
          ptr_Electron
          wrote on last edited by
          #4

          No it is good once but,SetCursor() was a working for all the dialogs except for one dialog box. When I user CWaitCursor using this works for all the dialogs (for the one dialog which I mentioned above I used

          wait.Restore();

          inbetween the code). It worked. But now the new problem was that when on mouse move event , the hour glass symbol is replaced by normal mouse cursor. Is there some thing similar to wait.Restore(); wich I can use with SetCursor

          1 Reply Last reply
          0
          • P ptr_Electron

            CWaitCursor changes back to normal cursor on mouse move event, before the end of the function CWaitCursor wait;

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            See here.

            "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            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