1 #ifndef __EVENTEDPROPERTY_H__221ADEB0_5C31_4bfe_872F_73B16AB08F75
2 #define __EVENTEDPROPERTY_H__221ADEB0_5C31_4bfe_872F_73B16AB08F75
4 #include "EventHandler.h"
6 template<
typename DATATYPE>
13 template<
typename OLDVALTYPE,
typename NEWVALTYPE>
15 : m_OldValue(oldVal), m_NewValue(NewVal)
18 inline const DATATYPE& OldValue()
const {
return m_OldValue; }
19 inline const DATATYPE& NewValue()
const {
return m_NewValue; }
22 template<
typename DATATYPE>
27 template<
typename OLDVALTYPE,
typename NEWVALTYPE>
32 inline bool Cancel()
const {
return m_bCancel; }
33 inline void SetCancel() { m_bCancel =
true; }
36 template<
typename DATATYPE>
54 inline operator DATATYPE()
const {
return m_Data; }
62 if(evArgs.Cancel() ==
false)
void RaiseEvent(CEventT< TEventSource, TEventHandlerArgs > *pEvent, TEventHandlerArgs *pArgs)