| Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
|
Assign TForm.Icon at run time
ImageEdit is not good. Try to get Borland's Resource Workshop or paint with
Use {$R xxx.res} to include it. Then you may use the API function
HICON LoadIcon(
HINSTANCE hInstance, // handle of application instance
LPCTSTR lpIconName // icon-name string or icon resource identifier
);
Take this handle (HICON) with the message WM_SETICON to assign it to your
Note: 3rd parameter = icon size (true -> large icon; false -> small icon).
Comments:
| ||||||||||||||