Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to change the global mouse pointer cursor with event trigger in Delphi?
How to change the global mouse pointer cursor with event trigger in Delphi?
//Set the system cursor

Program TForm 1. FormCreate (sender: toobject);

defined variable

new cursor:HCursor;

begin

NewCursor := LoadCursorFromFile ('cursor position');

SetSystemCursor(NewCursor,OCR _ NORMAL);

End;

//Restore the system default cursor.

SystemParametersinfo(SPI _ set cursors,0,nil,SPIF _ send change);