ReactOS  0.4.15-dev-509-g96a357b
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

HICON get_window_icon_small (HWND hwnd)
 retrieve icon from window More...
 
HICON get_window_icon_big (HWND hwnd, bool allow_from_class)
 

Variables

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")
 

Function Documentation

◆ 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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
static HICON
Definition: imagelist.c:84
#define GCL_HICONSM
Definition: winuser.h:662
#define SMTO_ABORTIFHUNG
Definition: winuser.h:1209
#define ICON_SMALL
Definition: tnclass.cpp:48
#define WM_QUERYDRAGICON
Definition: winuser.h:1636
#define SendMessageTimeout
Definition: winuser.h:5820
ULONG_PTR * PDWORD_PTR
Definition: basetsd.h:184
#define GetClassLongPtr
Definition: winuser.h:5757
#define GCL_HICON
Definition: winuser.h:661
HICON hIcon
Definition: msconfig.c:44
#define ICON_BIG
Definition: tnclass.cpp:51

◆ 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 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
static HICON
Definition: imagelist.c:84
#define GCL_HICONSM
Definition: winuser.h:662
#define SMTO_ABORTIFHUNG
Definition: winuser.h:1209
#define ICON_SMALL
Definition: tnclass.cpp:48
#define WM_QUERYDRAGICON
Definition: winuser.h:1636
#define SendMessageTimeout
Definition: winuser.h:5820
ULONG_PTR * PDWORD_PTR
Definition: basetsd.h:184
#define GetClassLongPtr
Definition: winuser.h:5757
#define GCL_HICON
Definition: winuser.h:661
HICON hIcon
Definition: msconfig.c:44
#define ICON_BIG
Definition: tnclass.cpp:51

Referenced by TaskBar::EnumWndProc().

Variable Documentation

◆ g_DeregisterShellHookWindow

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

Definition at line 37 of file taskbar.cpp.

Referenced by TaskBar::~TaskBar().

◆ g_RegisterShellHookWindow

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

Definition at line 36 of file taskbar.cpp.

Referenced by TaskBar::Init().

◆ g_SetTaskmanWindow

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

Definition at line 35 of file taskbar.cpp.

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