|
|
"How to change the Window and Taskbar Icon", by grisu
|
Simple demo to demonstrate how to change the Window and Taskbar Icon in Blitz. Originally written by Binary Moon.
To run it needs a "user32.decls" placed in your userlib folder consisting of the following lines:
.lib "user32.dll" User32_GetActiveWindow%():"GetActiveWindow" User32_SetClassLong%( hWnd, nIndex, dwNewLong ):"SetClassLongA"
.lib "Shell32.dll" LoadIcon%(hWND%,File$,Index%) : "ExtractIconA" You also need an icon named "demo.ico" placed in the program folder! |
| Code | | | |