![]() I used this method to load a 48x48 icon when my system is set to 32x32. We can use LoadImage instead of LoadCursorFromFile to load non-standard size icons and cursors. This step is optional:ĬursorHandle := DllCall( "CopyImage", uint,CursorHandle, uint,IMAGE_CURSOR, int,cx, int,cy, uint,0 ) We can change the size of the cursor with CopyImage, although this method stretches it so the end look may not be satisfactory. You can also load an icon file here:ĬursorHandle := DllCall( "LoadCursorFromFile", Str,Cursor ) If you want to load a cursor from a file, use LoadCursorFromFile instead. ![]() Here I've used IDC_SIZEALL:ĬursorHandle := DllCall( "LoadCursor", Uint,0, Int,IDC_SIZEALL ) To load a system cursor use LoadCursor, which returns a handle to use in SetSystemCursor. ![]() The first thing is decide what kind of cursor to use - a system cursor, or a cursor loaded from a file? It is also possible to load a cursor from within a script, see Crazy Scripting : Include an Icon in your script. I thought I'd write a guide to hopefully make this more accessible to others.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |