Re: Mouse pointer corrupted. by juandlcc
juandlcc
Thu Dec 11 09:24:46 CST 2003
Hello!
I have news about my problem with mouse cursor.
I used VIA Twister video driver (on a CEPC) that uses a H/W cursor.
In my application (that suplies the shell explorer.exe) I have written
a Sleep call just at the begining of the entry point (WinMain), and I
can notice that the dirty rectangle apears just after my aplication is
launched and not before.
The dirty rectangle remains at the screen until CreateWindow call is
made, after the cursor is correct. The shape of the dirty rectangle is
ever the same, but if I reboot the platform without turning off the
power suply, the next time my aplication appears, I can see a half of
the HOURGLASS cursor that I load using Win32 API in my aplication.
I suspect that the hardware cursor memory region is no correctly
initialized because explorer.exe is not launched.
My questions are:
How can I manually clear the hardware cursor region of memory to avoid
dirty rectangle appears?
What does 'explorer.exe' do that I don't do in my app to initialize
the mouse cursor?
Thanks in advance for your help.
Regards,
Juan
juandlcc@hotmail.com (Juan de la Cerda) wrote in message news:<2a9f8977.0312050058.6ea7409e@posting.google.com>...
> Hi!
>
> I'm using PB4.2 with a CEPC compatible board (VIA processor).
>
> I have a little problem, I want to put my aplication instead of
> "explorer.exe" because I don't need Desktop and Taskbar.
>
> In shell.reg I modified "Launch50"="explorer.exe" line with my app, of
> course, my aplication has "SignalStarted" call, and all works fine,
> when I reboot mi application appears instead of standard shell.
>
> But I have a problem during system inicialization, seconds before my
> application appears, the screen shows a dirty square in the mouse
> position (if I move the mouse the square moves too) over the blank
> screen, after, my application appears with the correct mouse pointer.
>
> Could anyone helpme in knowing how to remove the dirty square during
> inicialization without disabling mouse function in the application?
>
> Thanks in advance.
>
> Regards,
>
> Juan.