Click to See Complete Forum and Search --> : Restoring the cursor


leojose
June 7th, 2005, 12:58 AM
Hi all,

Can somebody suggest me, how after having used the SetSystemCursor() to change a default cursor, can I get the original cursor back?



Code:
hblank = CreateCursor( NULL, 0, 0, 32, 32, AndMask, XorMask );
hblanktemp = CopyCursor(hblank);
SetSystemCursor(hblanktemp,OCR_NORMAL);

Here, I am over writting the arrow cursor with a custom made 'blank' cursor. Now what can I do to restore the arrow cursor?

golanshahar
June 7th, 2005, 02:29 AM
when you want to reload system cursor i think you should call


::SystemParametersInfo(SPI_SETCURSORS,0,0,SPIF_SENDCHANGE);


if i helped dont forget to rate :-)
Cheers