diff --git a/CpDibEvent.cpp b/CpDibEvent.cpp new file mode 100644 index 0000000..5eaa5bc --- /dev/null +++ b/CpDibEvent.cpp @@ -0,0 +1,58 @@ +// CpDibEvent.cpp : implementation file +// + +#include "stdafx.h" +#include "FutureChecker.h" +#include "CpDibEvent.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CCpDibEvent + +IMPLEMENT_DYNCREATE(CCpDibEvent, CCmdTarget) + +CCpDibEvent::CCpDibEvent() +{ + // <= Ãß°¡ÇÑ °ÍÀÓ + m_hwndOwner = NULL; + EnableAutomation(); + // + m_dwCookie = NULL; +} + +CCpDibEvent::~CCpDibEvent() +{ +} + +BEGIN_MESSAGE_MAP(CCpDibEvent, CCmdTarget) + //{{AFX_MSG_MAP(CCpDibEvent) + // NOTE - the ClassWizard will add and remove mapping macros here. + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +// <= Ãß°¡ÇÑ °ÍÀÓ +BEGIN_DISPATCH_MAP(CCpDibEvent, CCmdTarget) + DISP_FUNCTION(CCpDibEvent, "Received", Received, VT_EMPTY, VTS_NONE) +END_DISPATCH_MAP() + +BEGIN_INTERFACE_MAP(CCpDibEvent,CCmdTarget) + INTERFACE_PART(CCpDibEvent, __uuidof(_IDibEvents), Dispatch) + INTERFACE_PART(CCpDibEvent, __uuidof(_ICpCybosEvents), Dispatch) +END_INTERFACE_MAP() +// + + +///////////////////////////////////////////////////////////////////////////// +// CCpDibEvent message handlers + +void CCpDibEvent::Received() +{ + ASSERT(NULL != m_hwndOwner); + ::SendMessage(m_hwndOwner, WM_CPDIB_RECEIVED, 0, 0); +} +