My mouse just gets busy if i put on Dialog Box.. I mean busy Icon and i can't click on any of the control inside it..
I know it's refreshing everytime it moves. But how can i overcome this problem..
That is expected. AnimateWindow is expected to do what it needs for the duration you specify i.e. for 300 milliseconds it will do the animation and in that time, it will show a wait cursor. That is the expected behavior.
Yeah That is expected.. But when it stop for 4 seconds the mouse cursor remains same (i.e BUSY).. I mean isn't there any way to click on control after playing animation???
Last edited by techie.ashish; October 15th, 2008 at 04:44 AM.
Yeah That is expected.. But when it stop for 4 seconds the mouse cursor remains same (i.e BUSY).. I mean isn't there any way to click on control after playing animation???
Hm.. you mean, when the animation has stopped, the cursor still shows up as busy ?
Do i need to forcibly change the cursor?? Shouldn't window show appropriate cursor? I mean when animate window plays the animation window should change the cursor to normal one.. Right???
WM_SETCURSOR and SetCursor does change the cursor but i believe the window is still busy.. That's why not picking any of the messages.. When i set the cursor it changes but after that when i click on dialog it didn't handle WM_LBUTTONDOWN message. Same behavior when the dialog was busy..
You get the hourglass because you don't let the window process any messages. In your WM_INITDIALOG you show the window, then sleep 5 seconds and hide the window and call EndDialog immediately. So the system doesn't get the time to change the cursor.
Do not do it like this.
Instead, when your window is fully shown, install a timer of 5 seconds (SetTimer) and handle WM_TIMER message. In that message hide the dialog.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.