Commit 03a6889e authored by Thuy Nguyen's avatar Thuy Nguyen Committed by Alexandre Julliard

Implemented the WM_SETICON and WM_GETICON messages.

parent 467845a0
......@@ -938,6 +938,10 @@ typedef struct tagWINDOWPOS
#define WA_ACTIVE 1
#define WA_CLICKACTIVE 2
/* WM_GETICON/WM_SETICON params values */
#define ICON_SMALL 0
#define ICON_BIG 1
/* WM_NCCALCSIZE parameter structure */
typedef struct
{
......
......@@ -467,7 +467,25 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
case WM_QUERYOPEN:
case WM_QUERYENDSESSION:
return 1;
case WM_SETICON:
case WM_GETICON:
{
LRESULT result = 0;
int index = GCL_HICON;
if (wParam == ICON_SMALL)
index = GCL_HICONSM;
result = GetClassLongA(wndPtr->hwndSelf, index);
if (msg == WM_SETICON)
SetClassLongA(wndPtr->hwndSelf, index, lParam);
return result;
}
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment