This commit is contained in:
2013-07-20 23:23:04 +00:00
parent f83322e78f
commit cd1991998d

58
HookMsg/CpDibEvent.cpp Normal file
View File

@@ -0,0 +1,58 @@
// CpDibEvent.cpp : implementation file
//
#include "stdafx.h"
#include "HookMsg.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);
}