This commit is contained in:
58
HookMsg/CpDibEvent.cpp
Normal file
58
HookMsg/CpDibEvent.cpp
Normal 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user