|
// NotifyObject.cpp : implementation file
//
#include "stdafx.h"
#include "NotifierApp.h"
#include "NotifyObject.h"
// CNotifyObject
IMPLEMENT_SERIAL(CNotifyObject, CObject, NOTIFY_OBJECT_SCHEMA )
CNotifyObject::CNotifyObject()
{
memset( &(m_hdrObject.nmHdr), 0, sizeof(m_hdrObject.nmHdr) ) ;
m_hdrObject.pObject = this ;
m_Message = 0 ;
}
CNotifyObject::CNotifyObject( NMHDR & Hdr )
{
memcpy( &(m_hdrObject.nmHdr), &(Hdr), sizeof(m_hdrObject.nmHdr) ) ;
m_hdrObject.pObject = this ;
m_Message = 0 ;
}
CNotifyObject::CNotifyObject( const CNotifyObject & Object )
{
Copy( Object ) ;
m_hdrObject.pObject = this ;
}
CNotifyObject::~CNotifyObject()
{
}
// CNotifyObject member functions
UINT CNotifyObject::get_Message()
{
return m_Message ;
}
CNotifyObject & CNotifyObject::operator = ( const CNotifyObject & Object )
{
Copy( Object ) ;
m_hdrObject.pObject = this ;
return *this ;
}
void CNotifyObject::Copy( const CNotifyObject & Object )
{
memcpy( &(m_hdrObject.nmHdr), &(const_cast<CNotifyObject &>(Object).m_hdrObject.nmHdr), sizeof(m_hdrObject.nmHdr) ) ;
m_Message = const_cast<CNotifyObject&>(Object).m_Message ;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.