uLib  User mode C/C++ extended API library for Win32 programmers.

Module Description

Tray related utilities... (ShellUtil.cpp)

Functions

void InitTaskbarSupport ()
 
BOOL SetTrayIconNotification (UINT Action, HWND hNfy, UINT Id, HICON hIcon, CSTR Hint, UINT cbkMsg=WM_APP)
 

Variables

UINT WM_TaskbarCreated
 

Function Documentation

◆ InitTaskbarSupport()

void InitTaskbarSupport ( )

Register the TaskbarCreated message, et cetera.
For 'TaskbarCreated' to work on Vista and later, it must be unblocked from User Interface Privilege Isolation.
InitTaskbarSupport does this if you build uLib with WINVER >= 0x0600.

Definition at line 576 of file ShellUtil.cpp.

◆ SetTrayIconNotification()

BOOL SetTrayIconNotification ( UINT  Action,
HWND  hNfy,
UINT  Id,
HICON  hIcon,
CSTR  Hint,
UINT  cbkMsg = WM_APP 
)

SetTrayIconNotification is a simplified wrap for Shell_NotifyIcon, supporting a single icon,
standard tool tip, and classic lParam notifications (e.g. WM_LBUTTONDOWN).

Definition at line 607 of file ShellUtil.cpp.

Variable Documentation

◆ WM_TaskbarCreated

UINT WM_TaskbarCreated

Registered TaskbarCreated message.
See InitTaskbarSupport()

Definition at line 562 of file ShellUtil.cpp.