mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
[EXPLORER] Add comments for CTaskSwitchWnd::GetWndIcon
This commit is contained in:
parent
9049638dac
commit
4c21d97d84
1 changed files with 3 additions and 0 deletions
|
@ -490,6 +490,8 @@ public:
|
||||||
HICON GetWndIcon(HWND hwnd)
|
HICON GetWndIcon(HWND hwnd)
|
||||||
{
|
{
|
||||||
HICON hIcon = NULL;
|
HICON hIcon = NULL;
|
||||||
|
|
||||||
|
/* Retrieve icon by sending a message */
|
||||||
#define GET_ICON(type) \
|
#define GET_ICON(type) \
|
||||||
SendMessageTimeout(hwnd, WM_GETICON, (type), 0, SMTO_NOTIMEOUTIFNOTHUNG, 100, (PDWORD_PTR)&hIcon)
|
SendMessageTimeout(hwnd, WM_GETICON, (type), 0, SMTO_NOTIMEOUTIFNOTHUNG, 100, (PDWORD_PTR)&hIcon)
|
||||||
|
|
||||||
|
@ -512,6 +514,7 @@ public:
|
||||||
}
|
}
|
||||||
#undef GET_ICON
|
#undef GET_ICON
|
||||||
|
|
||||||
|
/* If we failed, retrieve icon from the window class */
|
||||||
hIcon = (HICON)GetClassLongPtr(hwnd, g_TaskbarSettings.bSmallIcons ? GCLP_HICONSM : GCLP_HICON);
|
hIcon = (HICON)GetClassLongPtr(hwnd, g_TaskbarSettings.bSmallIcons ? GCLP_HICONSM : GCLP_HICON);
|
||||||
if (hIcon)
|
if (hIcon)
|
||||||
return hIcon;
|
return hIcon;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue