mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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 hIcon = NULL;
|
||||
|
||||
/* Retrieve icon by sending a message */
|
||||
#define GET_ICON(type) \
|
||||
SendMessageTimeout(hwnd, WM_GETICON, (type), 0, SMTO_NOTIMEOUTIFNOTHUNG, 100, (PDWORD_PTR)&hIcon)
|
||||
|
||||
|
@ -512,6 +514,7 @@ public:
|
|||
}
|
||||
#undef GET_ICON
|
||||
|
||||
/* If we failed, retrieve icon from the window class */
|
||||
hIcon = (HICON)GetClassLongPtr(hwnd, g_TaskbarSettings.bSmallIcons ? GCLP_HICONSM : GCLP_HICON);
|
||||
if (hIcon)
|
||||
return hIcon;
|
||||
|
|
Loading…
Reference in a new issue