Public Types | Public Member Functions | Protected Attributes

TrayIconControllerTemplate< BASE > Struct Template Reference

#include <window.h>

Inheritance diagram for TrayIconControllerTemplate< BASE >:
Inheritance graph
[legend]
Collaboration diagram for TrayIconControllerTemplate< BASE >:
Collaboration graph
[legend]

List of all members.

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 1041 of file window.h.


Member Typedef Documentation

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

Definition at line 1043 of file window.h.


Constructor & Destructor Documentation

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

Definition at line 1045 of file window.h.

                                          : BASE(hwnd),
        WM_TASKBARCREATED(RegisterWindowMessage(WINMSG_TASKBARCREATED))
    {
    }

Member Function Documentation

template<typename BASE >
virtual void TrayIconControllerTemplate< BASE >::AddTrayIcons (  ) [pure virtual]
template<typename BASE >
virtual void TrayIconControllerTemplate< BASE >::TrayClick ( UINT  id,
int  btn 
) [inline, virtual]

Definition at line 1093 of file window.h.

{}
template<typename BASE >
virtual void TrayIconControllerTemplate< BASE >::TrayDblClick ( UINT  id,
int  btn 
) [inline, virtual]

Definition at line 1094 of file window.h.

{}
template<typename BASE >
virtual void TrayIconControllerTemplate< BASE >::TrayMouseOver ( UINT  id ) [inline, virtual]

Definition at line 1092 of file window.h.

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

Definition at line 1050 of file window.h.

References PM_TRAYICON, TRAYBUTTON_LEFT, TRAYBUTTON_MIDDLE, and TRAYBUTTON_RIGHT.

    {
        if (nmsg == PM_TRAYICON) {
            switch(lparam) {
              case WM_MOUSEMOVE:
                TrayMouseOver(wparam);
                break;

              case WM_LBUTTONDOWN:
                TrayClick(wparam, TRAYBUTTON_LEFT);
                break;

              case WM_LBUTTONDBLCLK:
                TrayDblClick(wparam, TRAYBUTTON_LEFT);
                break;

              case WM_RBUTTONDOWN:
                TrayClick(wparam, TRAYBUTTON_RIGHT);
                break;

              case WM_RBUTTONDBLCLK:
                TrayDblClick(wparam, TRAYBUTTON_RIGHT);
                break;

              case WM_MBUTTONDOWN:
                TrayClick(wparam, TRAYBUTTON_MIDDLE);
                break;

              case WM_MBUTTONDBLCLK:
                TrayDblClick(wparam, TRAYBUTTON_MIDDLE);
                break;
            }

            return 0;
        } else if (nmsg == WM_TASKBARCREATED) {
            AddTrayIcons();
            return 0;
        } else
            return super::WndProc(nmsg, wparam, lparam);
    }

Member Data Documentation

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

Definition at line 1097 of file window.h.


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

ROS Explorer Source Code Documentation
generated on 02.01.2013 by doxygen

ROS Explorer Homepage