Mercurial > dwindows
comparison os2/dw.c @ 336:a2f72b5d5d0a
Minor change to dw_window_set_icon() on OS/2 and Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 10 Apr 2003 12:05:36 +0000 |
parents | e00aff2b899e |
children | e9a424e641ff |
comparison
equal
deleted
inserted
replaced
335:97029f1f29de | 336:a2f72b5d5d0a |
---|---|
4482 * handle: Handle to the window. | 4482 * handle: Handle to the window. |
4483 * id: An ID to be used to specify the icon. | 4483 * id: An ID to be used to specify the icon. |
4484 */ | 4484 */ |
4485 void API dw_window_set_icon(HWND handle, ULONG id) | 4485 void API dw_window_set_icon(HWND handle, ULONG id) |
4486 { | 4486 { |
4487 HPOINTER icon; | 4487 HPOINTER icon = id < 65536 ? WinLoadPointer(HWND_DESKTOP,NULLHANDLE,id) : (HPOINTER)id; |
4488 | |
4489 icon = WinLoadPointer(HWND_DESKTOP,NULLHANDLE,id); | |
4490 WinSendMsg(handle, WM_SETICON, (MPARAM)icon, 0); | 4488 WinSendMsg(handle, WM_SETICON, (MPARAM)icon, 0); |
4491 } | 4489 } |
4492 | 4490 |
4493 /* Internal function to load a bitmap from a file and return handles | 4491 /* Internal function to load a bitmap from a file and return handles |
4494 * to the bitmap, presentation space etc. | 4492 * to the bitmap, presentation space etc. |