frmSysTray

frmSysTray


frmSysTray. Steve McMahon Original version based on code supplied from Ben Baird: Setting an icon in the taskbars system tray.


Author: Copyright (c) 1997, Ben Baird
Modified: 03/03/2003 * Added Unicode support * Added support for new tray version (ME,2000 or above required) * Added support for balloon tips (ME,2000 or above required)

Public:

Properties:

NameDescription
 DefaultMenuIndex (get) 
 DefaultMenuIndex (let) 
 IconHandle (get) 
 IconHandle (let) 
 ToolTip (get) 
 ToolTip (let) 

Methods:

NameDescription
 AddMenuItem 
 EnableMenuItem 
 RemoveMenuItem 
 ShowMenu 

Events:

NameDescription
 MenuClick 
 SysTrayDoubleClick 
 SysTrayMouseDown 
 SysTrayMouseMove 
 SysTrayMouseUp 

Private:

frmSysTray

NameDescription
 Form_Load 
 Form_MouseMove 
 Form_QueryUnload 

Controls:

mnuSysTray
NameDescription
 mnuSysTray_Click 

Constants:

NameDescription
 NIF_ICON 
 NIF_MESSAGE 
 NIF_TIP 
 NIM_ADD 
 NIM_DELETE 
 NIM_MODIFY 
 NIM_SETFOCUS 
 NIM_SETVERSION 
 NOTIFYICON_VERSION 
 NOTIFYICONDATAA_V1_SIZE_A 
 NOTIFYICONDATAA_V1_SIZE_U 
 NOTIFYICONDATAA_V2_SIZE_A 
 NOTIFYICONDATAA_V2_SIZE_U 
 WM_LBUTTONDBLCLK 
 WM_LBUTTONDOWN 
 WM_LBUTTONUP 
 WM_MOUSEMOVE 
 WM_RBUTTONDBLCLK 
 WM_RBUTTONDOWN 
 WM_RBUTTONUP 
 WM_USER 

Types:

NameDescription
 NOTIFYICONDATAA 
 NOTIFYICONDATAW 

Properties:

NameDescription
 m_bAddedMenuItem 
 m_bSupportsNewVersion 
 m_bUseUnicode 
 m_iDefaultIndex 
 nfIconDataA 
 nfIconDataW 
 nfStructureSize (get) 

Methods:

NameDescription
 stringToArray 
 unicodeSize 
 ValidIndex 

Declarations:

NameDescription
 SetForegroundWindow (function) 
 Shell_NotifyIconA (function) 
 Shell_NotifyIconW (function)