[EXPLORER] Add comments for CTaskSwitchWnd::GetWndIcon

This commit is contained in:
Thamatip Chitpong 2023-08-02 19:09:58 +07:00
parent 9049638dac
commit 4c21d97d84

View file

@ -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;