comparison win/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 67f2e890b9df
comparison
equal deleted inserted replaced
671:c60a4f6cfae8 672:388f2a48aaae
5559 * Sets the icon used for a given window. 5559 * Sets the icon used for a given window.
5560 * Parameters: 5560 * Parameters:
5561 * handle: Handle to the window. 5561 * handle: Handle to the window.
5562 * id: An ID to be used to specify the icon. 5562 * id: An ID to be used to specify the icon.
5563 */ 5563 */
5564 void API dw_window_set_icon(HWND handle, ULONG id) 5564 void API dw_window_set_icon(HWND handle, HICN icon)
5565 { 5565 {
5566 HICON hicon = id < 65536 ? LoadIcon(DWInstance, MAKEINTRESOURCE(id)) : (HICON)id; 5566 HICON hicon = icon < 65536 ? LoadIcon(DWInstance, MAKEINTRESOURCE(icon)) : (HICON)icon;
5567 5567
5568 SendMessage(handle, WM_SETICON, 5568 SendMessage(handle, WM_SETICON,
5569 (WPARAM) IMAGE_ICON, 5569 (WPARAM) IMAGE_ICON,
5570 (LPARAM) hicon); 5570 (LPARAM) hicon);
5571 } 5571 }