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. Hour Glass won't go away!

Hour Glass won't go away!

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

    Hi, I am creating a dialog based application in MFC, and I am having a weird problem with one of the CWnd derived objects on my dialog. Basically when starting the application, if it starts up such that the mouse pointer is over one particular dialog (which I created...) the hourglass doesn't go away until I move the mouse off that part of the dialog. As soon as I move it off the dialog it goes away. If it starts up such that the mouse over another part of the dialog it goes away just fine. However, it's kind of annoying (and unprofessional) because that part of the dialog that causes the mouse the hourglass to hang is quite large. Strange! Is there any way to programatically tell the hour glass to go away? Thanks - @LRG

    L D 2 Replies Last reply
    0
    • L largeinsd

      Hi, I am creating a dialog based application in MFC, and I am having a weird problem with one of the CWnd derived objects on my dialog. Basically when starting the application, if it starts up such that the mouse pointer is over one particular dialog (which I created...) the hourglass doesn't go away until I move the mouse off that part of the dialog. As soon as I move it off the dialog it goes away. If it starts up such that the mouse over another part of the dialog it goes away just fine. However, it's kind of annoying (and unprofessional) because that part of the dialog that causes the mouse the hourglass to hang is quite large. Strange! Is there any way to programatically tell the hour glass to go away? Thanks - @LRG

      L Offline
      L Offline
      largeinsd
      wrote on last edited by
      #2

      Ok, Let me answer my own question - I just found that if I put EndWaitCursor() in the OnInitDialog memeber after creating the problem CWnd it works. Wondering, is this a bit of a kluge? Thanks - @LRG

      D 1 Reply Last reply
      0
      • L largeinsd

        Ok, Let me answer my own question - I just found that if I put EndWaitCursor() in the OnInitDialog memeber after creating the problem CWnd it works. Wondering, is this a bit of a kluge? Thanks - @LRG

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

        @largeinsd wrote:

        Wondering, is this a bit of a kluge?

        Sounds like it.

        "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        1 Reply Last reply
        0
        • L largeinsd

          Hi, I am creating a dialog based application in MFC, and I am having a weird problem with one of the CWnd derived objects on my dialog. Basically when starting the application, if it starts up such that the mouse pointer is over one particular dialog (which I created...) the hourglass doesn't go away until I move the mouse off that part of the dialog. As soon as I move it off the dialog it goes away. If it starts up such that the mouse over another part of the dialog it goes away just fine. However, it's kind of annoying (and unprofessional) because that part of the dialog that causes the mouse the hourglass to hang is quite large. Strange! Is there any way to programatically tell the hour glass to go away? Thanks - @LRG

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

          @largeinsd wrote:

          ...the mouse pointer is over one particular dialog (which I created...)

          How many dialogs are we talking about here? The first sentence in this post implies one dialog with several controls on it. Is there more to it than that?

          "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          L 1 Reply Last reply
          0
          • D David Crow

            @largeinsd wrote:

            ...the mouse pointer is over one particular dialog (which I created...)

            How many dialogs are we talking about here? The first sentence in this post implies one dialog with several controls on it. Is there more to it than that?

            "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            L Offline
            L Offline
            largeinsd
            wrote on last edited by
            #5

            DavidCrow wrote:

            How many dialogs are we talking about here? The first sentence in this post implies one dialog with several controls on it. Is there more to it than that?

            Yes, you're right - one dialog with several controls. One particular control is causing the problem. @LRG

            D 1 Reply Last reply
            0
            • L largeinsd

              DavidCrow wrote:

              How many dialogs are we talking about here? The first sentence in this post implies one dialog with several controls on it. Is there more to it than that?

              Yes, you're right - one dialog with several controls. One particular control is causing the problem. @LRG

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

              @largeinsd wrote:

              One particular control is causing the problem.

              And what type of control would that be?

              "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              L 1 Reply Last reply
              0
              • D David Crow

                @largeinsd wrote:

                One particular control is causing the problem.

                And what type of control would that be?

                "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                L Offline
                L Offline
                largeinsd
                wrote on last edited by
                #7

                Wow you ask the tough questions... :) It's a custom (CWnd derived) class I found on this web site for doing OpenGL in an MFC Window. It's called a COpenGLControl. Not trying to get folks to debug some random code I found on the interwebs, so that's why I was speaking in generalities. :) Thanks - @LRG

                D 1 Reply Last reply
                0
                • L largeinsd

                  Wow you ask the tough questions... :) It's a custom (CWnd derived) class I found on this web site for doing OpenGL in an MFC Window. It's called a COpenGLControl. Not trying to get folks to debug some random code I found on the interwebs, so that's why I was speaking in generalities. :) Thanks - @LRG

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

                  Do you have an entry in your dialog's DoDataExchange() method for the COpenGLControl control? If so, can you temporarily comment it out and note the result.

                  "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                  "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                  L 1 Reply Last reply
                  0
                  • D David Crow

                    Do you have an entry in your dialog's DoDataExchange() method for the COpenGLControl control? If so, can you temporarily comment it out and note the result.

                    "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                    "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                    L Offline
                    L Offline
                    largeinsd
                    wrote on last edited by
                    #9

                    Uh, hrrmmm, no I don't have an entry in DDX for that. I guess I thought I didn't need one, because it's a graphics control (running an openGL instance) not a regular control exchanging values from input. The only input it takes is mouse clicks to orient the view. I guess I'll put one in (for DDX_CUSTOM(), eh?) and see what happens. Thanks - @LRG

                    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