https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4c21d97d848168b33d681…
commit 4c21d97d848168b33d68133f2503c1aa9ce48820
Author: Thamatip Chitpong <thamatip.chitpong(a)reactos.org>
AuthorDate: Wed Aug 2 19:09:58 2023 +0700
Commit: Thamatip Chitpong <thamatip.chitpong(a)reactos.org>
CommitDate: Thu Aug 3 16:43:08 2023 +0700
[EXPLORER] Add comments for CTaskSwitchWnd::GetWndIcon
---
base/shell/explorer/taskswnd.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/base/shell/explorer/taskswnd.cpp b/base/shell/explorer/taskswnd.cpp
index 2602a76c686..588e7d73fd3 100644
--- a/base/shell/explorer/taskswnd.cpp
+++ b/base/shell/explorer/taskswnd.cpp
@@ -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;