ReactOS  0.4.15-dev-321-g2d9b385
TrayIconControllerTemplate< BASE > Struct Template Referenceabstract

#include <window.h>

Inheritance diagram for TrayIconControllerTemplate< BASE >:
Collaboration diagram for TrayIconControllerTemplate< BASE >:

Public Types

typedef BASE super
 

Public Member Functions

 TrayIconControllerTemplate (HWND hwnd)
 
LRESULT WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam)
 
virtual void AddTrayIcons ()=0
 
virtual void TrayMouseOver (UINT id)
 
virtual void TrayClick (UINT id, int btn)
 
virtual void TrayDblClick (UINT id, int btn)
 

Protected Attributes

const UINT WM_TASKBARCREATED
 

Detailed Description

template<typename BASE>
struct TrayIconControllerTemplate< BASE >

Definition at line 1042 of file window.h.

Member Typedef Documentation

◆ super

template<typename BASE >
typedef BASE TrayIconControllerTemplate< BASE >::super

Definition at line 1044 of file window.h.

Constructor & Destructor Documentation

◆ TrayIconControllerTemplate()

template<typename BASE >
TrayIconControllerTemplate< BASE >::TrayIconControllerTemplate ( HWND  hwnd)
inline

Definition at line 1046 of file window.h.

1046  : BASE(hwnd),
1048  {
1049  }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define WINMSG_TASKBARCREATED
Definition: window.h:986
#define BASE
Definition: adler32.c:10
#define RegisterWindowMessage
Definition: winuser.h:5815
const UINT WM_TASKBARCREATED
Definition: window.h:1098

Member Function Documentation

◆ AddTrayIcons()

template<typename BASE >
virtual void TrayIconControllerTemplate< BASE >::AddTrayIcons ( )
pure virtual

◆ TrayClick()

template<typename BASE >
virtual void TrayIconControllerTemplate< BASE >::TrayClick ( UINT  id,
int  btn 
)
inlinevirtual

Definition at line 1094 of file window.h.

1094 {}

Referenced by TrayIconControllerTemplate< BASE >::WndProc().

◆ TrayDblClick()

template<typename BASE >
virtual void TrayIconControllerTemplate< BASE >::TrayDblClick ( UINT  id,
int  btn 
)
inlinevirtual

Definition at line 1095 of file window.h.

1095 {}

Referenced by TrayIconControllerTemplate< BASE >::WndProc().

◆ TrayMouseOver()

template<typename BASE >
virtual void TrayIconControllerTemplate< BASE >::TrayMouseOver ( UINT  id)
inlinevirtual

Definition at line 1093 of file window.h.

1093 {}

Referenced by TrayIconControllerTemplate< BASE >::WndProc().

◆ WndProc()

template<typename BASE >
LRESULT TrayIconControllerTemplate< BASE >::WndProc ( UINT  nmsg,
WPARAM  wparam,
LPARAM  lparam 
)
inline

Definition at line 1051 of file window.h.

1052  {
1053  if (nmsg == PM_TRAYICON) {
1054  switch(lparam) {
1055  case WM_MOUSEMOVE:
1057  break;
1058 
1059  case WM_LBUTTONDOWN:
1061  break;
1062 
1063  case WM_LBUTTONDBLCLK:
1065  break;
1066 
1067  case WM_RBUTTONDOWN:
1069  break;
1070 
1071  case WM_RBUTTONDBLCLK:
1073  break;
1074 
1075  case WM_MBUTTONDOWN:
1077  break;
1078 
1079  case WM_MBUTTONDBLCLK:
1081  break;
1082  }
1083 
1084  return 0;
1085  } else if (nmsg == WM_TASKBARCREATED) {
1086  AddTrayIcons();
1087  return 0;
1088  } else
1089  return super::WndProc(nmsg, wparam, lparam);
1090  }
#define WM_LBUTTONDOWN
Definition: winuser.h:1758
virtual void TrayClick(UINT id, int btn)
Definition: window.h:1094
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
#define WM_RBUTTONDOWN
Definition: winuser.h:1761
#define PM_TRAYICON
Definition: window.h:984
virtual void AddTrayIcons()=0
virtual void TrayMouseOver(UINT id)
Definition: window.h:1093
#define WM_LBUTTONDBLCLK
Definition: winuser.h:1760
#define WM_MBUTTONDBLCLK
Definition: winuser.h:1766
LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
Definition: solitaire.cpp:598
virtual void TrayDblClick(UINT id, int btn)
Definition: window.h:1095
const UINT WM_TASKBARCREATED
Definition: window.h:1098
#define WM_MBUTTONDOWN
Definition: winuser.h:1764
#define WM_MOUSEMOVE
Definition: winuser.h:1757
#define WM_RBUTTONDBLCLK
Definition: winuser.h:1763
static UINT WPARAM wparam
Definition: combo.c:716

Member Data Documentation

◆ WM_TASKBARCREATED

template<typename BASE >
const UINT TrayIconControllerTemplate< BASE >::WM_TASKBARCREATED
protected

Definition at line 1098 of file window.h.

Referenced by TrayIconControllerTemplate< BASE >::WndProc().


The documentation for this struct was generated from the following file: