ReactOS 0.4.16-dev-240-gdb5fa3b
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()

Definition at line 1046 of file window.h.

1046 : BASE(hwnd),
1048 {
1049 }
#define BASE
Definition: inflate.c:58
#define WINMSG_TASKBARCREATED
Definition: window.h:986
const UINT WM_TASKBARCREATED
Definition: window.h:1098
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define RegisterWindowMessage
Definition: winuser.h:5852

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 }
@ lparam
Definition: SystemMenu.c:31
@ wparam
Definition: SystemMenu.c:30
#define PM_TRAYICON
Definition: window.h:984
@ TRAYBUTTON_MIDDLE
Definition: window.h:982
@ TRAYBUTTON_LEFT
Definition: window.h:982
@ TRAYBUTTON_RIGHT
Definition: window.h:982
virtual void TrayDblClick(UINT id, int btn)
Definition: window.h:1095
virtual void TrayClick(UINT id, int btn)
Definition: window.h:1094
virtual void AddTrayIcons()=0
virtual void TrayMouseOver(UINT id)
Definition: window.h:1093
#define WM_LBUTTONDBLCLK
Definition: winuser.h:1781
#define WM_RBUTTONDBLCLK
Definition: winuser.h:1784
#define WM_MOUSEMOVE
Definition: winuser.h:1778
#define WM_LBUTTONDOWN
Definition: winuser.h:1779
#define WM_RBUTTONDOWN
Definition: winuser.h:1782
#define WM_MBUTTONDBLCLK
Definition: winuser.h:1787
#define WM_MBUTTONDOWN
Definition: winuser.h:1785

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: