Mercurial > dwindows
comparison os2/dw.c @ 672:388f2a48aaae
Missed one function to typedef. Fixed errors in the test program and switched to using
the new HICN type after making sure the code built on the other platforms unmodified.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 27 Feb 2011 19:25:21 +0000 |
parents | c60a4f6cfae8 |
children | 2dd7638a7719 |
comparison
equal
deleted
inserted
replaced
671:c60a4f6cfae8 | 672:388f2a48aaae |
---|---|
5243 * Sets the icon used for a given window. | 5243 * Sets the icon used for a given window. |
5244 * Parameters: | 5244 * Parameters: |
5245 * handle: Handle to the window. | 5245 * handle: Handle to the window. |
5246 * id: An ID to be used to specify the icon. | 5246 * id: An ID to be used to specify the icon. |
5247 */ | 5247 */ |
5248 void API dw_window_set_icon(HWND handle, ULONG id) | 5248 void API dw_window_set_icon(HWND handle, HICN icon) |
5249 { | 5249 { |
5250 HPOINTER icon = id < 65536 ? WinLoadPointer(HWND_DESKTOP,NULLHANDLE,id) : (HPOINTER)id; | 5250 HPOINTER hptr = icon < 65536 ? WinLoadPointer(HWND_DESKTOP,NULLHANDLE,icon) : (HPOINTER)icon; |
5251 WinSendMsg(handle, WM_SETICON, (MPARAM)icon, 0); | 5251 WinSendMsg(handle, WM_SETICON, (MPARAM)hptr, 0); |
5252 } | 5252 } |
5253 | 5253 |
5254 /* Internal function to load a bitmap from a file and return handles | 5254 /* Internal function to load a bitmap from a file and return handles |
5255 * to the bitmap, presentation space etc. | 5255 * to the bitmap, presentation space etc. |
5256 */ | 5256 */ |