wGui::CValueMessage< T > Class Template Reference

#include <wg_message.h>

Inheritance diagram for wGui::CValueMessage< T >:

wGui::CMessage

Public Member Functions

Protected Attributes


Detailed Description

template<typename T>
class wGui::CValueMessage< T >

A template for messages that contain values Type T must have a valid copy constructor and assignment operator

Definition at line 195 of file wg_message.h.


Constructor & Destructor Documentation

template<typename T>
wGui::CValueMessage< T >::CValueMessage ( const EMessageType  MessageType,
const CMessageClient pDestination,
const CMessageClient pSource,
const T &  Value 
) [inline]

Construct a new template based Value message

Parameters:
MessageType The type of message being created
pDestination A pointer to the window that the message is destined for (0 for no specific destination, or to broadcast to all)
pSource A pointer to the control that triggered the message
Value A template type data the user has

Definition at line 204 of file wg_message.h.


Member Function Documentation

template<typename T>
const T& wGui::CValueMessage< T >::Value ( void   )  [inline]

Returns the value of the message

Returns:
A constant reference to the internal value

Definition at line 211 of file wg_message.h.

References wGui::CValueMessage< T >::m_Value.

Referenced by wGui::CView::HandleMessage(), wGui::CMenuBase::HandleMessage(), and wGui::CDropDown::HandleMessage().

template<typename T>
void wGui::CValueMessage< T >::SetValue ( const T &  Value  )  [inline]

Sets the value of the message

Parameters:
Value The value

Definition at line 215 of file wg_message.h.

References wGui::CValueMessage< T >::m_Value.


The documentation for this class was generated from the following file:
Generated on Wed May 16 23:11:27 2007 for wGui by  doxygen 1.5.1