ReactOS 0.4.15-dev-7958-gcd0bb1a
taskbar.cpp File Reference
#include <precomp.h>
#include "taskbar.h"
#include "traynotify.h"
Include dependency graph for taskbar.cpp:

Go to the source code of this file.

Functions

DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_SetTaskmanWindow (TEXT("user32"), "SetTaskmanWindow")
 
DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_RegisterShellHookWindow (TEXT("user32"), "RegisterShellHookWindow")
 
DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_DeregisterShellHookWindow (TEXT("user32"), "DeregisterShellHookWindow")
 
HICON get_window_icon_small (HWND hwnd)
 retrieve icon from window
 
HICON get_window_icon_big (HWND hwnd, bool allow_from_class)
 

Function Documentation

◆ g_DeregisterShellHookWindow()

DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_DeregisterShellHookWindow ( TEXT("user32")  ,
"DeregisterShellHookWindow"   
)

Referenced by TaskBar::~TaskBar().

◆ g_RegisterShellHookWindow()

DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_RegisterShellHookWindow ( TEXT("user32")  ,
"RegisterShellHookWindow"   
)

Referenced by TaskBar::Init().

◆ g_SetTaskmanWindow()

DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_SetTaskmanWindow ( TEXT("user32")  ,
"SetTaskmanWindow"   
)

Referenced by TaskBar::Init(), and TaskBar::~TaskBar().

◆ get_window_icon_big()

HICON get_window_icon_big ( HWND  hwnd,
bool  allow_from_class 
)

Definition at line 347 of file taskbar.cpp.

348{
349 HICON hIcon = 0;
350
352
353 if (!hIcon)
354 SendMessageTimeout(hwnd, WM_GETICON, ICON_SMALL2, 0, SMTO_ABORTIFHUNG, 1000, (PDWORD_PTR)&hIcon);
355
356 if (!hIcon)
358
359 if (allow_from_class) {
360 if (!hIcon)
362
363 if (!hIcon)
365 }
366
367 if (!hIcon)
369
370 return hIcon;
371}
ULONG_PTR * PDWORD_PTR
Definition: basetsd.h:182
static HICON
Definition: imagelist.c:84
HICON hIcon
Definition: msconfig.c:44
#define ICON_BIG
Definition: tnclass.cpp:51
#define ICON_SMALL
Definition: tnclass.cpp:48
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define SendMessageTimeout
Definition: winuser.h:5845
#define GetClassLongPtr
Definition: winuser.h:5782
#define WM_QUERYDRAGICON
Definition: winuser.h:1654
#define GCL_HICONSM
Definition: winuser.h:667
#define SMTO_ABORTIFHUNG
Definition: winuser.h:1223
#define GCL_HICON
Definition: winuser.h:666

◆ get_window_icon_small()

HICON get_window_icon_small ( HWND  hwnd)

retrieve icon from window

Definition at line 323 of file taskbar.cpp.

324{
325 HICON hIcon = 0;
326
327 SendMessageTimeout(hwnd, WM_GETICON, ICON_SMALL2, 0, SMTO_ABORTIFHUNG, 1000, (PDWORD_PTR)&hIcon);
328
329 if (!hIcon)
331
332 if (!hIcon)
334
335 if (!hIcon)
337
338 if (!hIcon)
340
341 if (!hIcon)
343
344 return hIcon;
345}

Referenced by TaskBar::EnumWndProc().