JohnCz , if I use BeginWaitCursor() this brings back to the first problem, which is that I 'm not calling the begin and the end from the same function.
...
Did you get any solution now?? (ok that was 5 years ago)
I have the same first problem, but trying to use modeless Property Sheet.
One of my page causes this assertion failure... pTemplate is NULL....
Well, ok, I solved this by setting the cursor to the arrow during the OnInitDialog, before any of the treatment may be done, then using BeginWaitCursor is some treatment is necessary.
Except I really need to know why it starts with an hourglass. Even when there is not treatment to do at the beginning, it starts with an hourglass. But then, since there is no reception of...
Thank you DP TWO, handling the WM_SETCURSOR seems to work.
I'll have to do it in both my dialogs since I'll need to be able to make an hourglass on both dialogs...
Don't you think Alin is right when s/he says that if another class or thread or whatever takes control of the Cursor, it gets back to normal even before my EndWaitCursor() is called ??
Well, yes, some other class do get the hand ... For example the communication class, that sends and receive the message, whereas I create my hourglass in the Dialog Class that request the messages...
I don't think it works...
I see the wait cursor very quickly, then nothing.
And my function that stops the CWaitcursor is never called. I don't receive the answer yet.
My guess is that the Wait...
Does it happen on a specific control, like a listcontrol??
You can check that in the properties you check the box : Want key input, or Want Return
I had trouble with that. Hopefully I needed to...