Implemented the WM_SETICON and WM_GETICON messages.
This commit is contained in:
parent
467845a081
commit
03a6889e5c
|
@ -938,6 +938,10 @@ typedef struct tagWINDOWPOS
|
||||||
#define WA_ACTIVE 1
|
#define WA_ACTIVE 1
|
||||||
#define WA_CLICKACTIVE 2
|
#define WA_CLICKACTIVE 2
|
||||||
|
|
||||||
|
/* WM_GETICON/WM_SETICON params values */
|
||||||
|
#define ICON_SMALL 0
|
||||||
|
#define ICON_BIG 1
|
||||||
|
|
||||||
/* WM_NCCALCSIZE parameter structure */
|
/* WM_NCCALCSIZE parameter structure */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -467,7 +467,25 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
|
||||||
case WM_QUERYOPEN:
|
case WM_QUERYOPEN:
|
||||||
case WM_QUERYENDSESSION:
|
case WM_QUERYENDSESSION:
|
||||||
return 1;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue