Information générale
Catégorie:
Fonctions Windows API
SetSystemCursor is declared like that:
BOOL SetSystemCursor ( HCURSOR hcur, DWORD id)
and replaces the standard cursor identified by the id with your cursor identified by hcur.
That means that if you want to replace the hourglass cursor with your "wait" cursor, you should:
SetSystemCursor( HandleToMyCursor, OCR_WAIT)
So, you already know which is the standard cursor, because it is you the one who replaced it. In the previous example, it's OCR_WAIT.
HTH,
Vlad
>Hi Bruce,
> I'm fiddling with the SetSystemCursor function and as always I have to mess things up a few times before getting them right :-). Is there a simple way to restore a cursor to its default startup state?
>
>Thanks,
>Bill
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement