Hour Glass won't go away!
-
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
-
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
-
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
@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
-
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
@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
-
@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
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
-
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
@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
-
@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
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
-
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
Do you have an entry in your dialog's
DoDataExchange()
method for theCOpenGLControl
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
-
Do you have an entry in your dialog's
DoDataExchange()
method for theCOpenGLControl
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
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