This commit is contained in:
68
CpDibEvent.h
Normal file
68
CpDibEvent.h
Normal file
@@ -0,0 +1,68 @@
|
||||
#if !defined(AFX_CPDIBEVENT_H__B591F279_D708_4C0B_BF79_4B22D8F69845__INCLUDED_)
|
||||
#define AFX_CPDIBEVENT_H__B591F279_D708_4C0B_BF79_4B22D8F69845__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// CpDibEvent.h : header file
|
||||
//
|
||||
|
||||
#define WM_CPDIB_RECEIVED (WM_USER+100) // <- 추가한 것임
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CCpDibEvent command target
|
||||
|
||||
class CCpDibEvent : public CCmdTarget
|
||||
{
|
||||
DECLARE_DYNCREATE(CCpDibEvent)
|
||||
|
||||
CCpDibEvent(); // protected constructor used by dynamic creation
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
// <= 추가한 것임
|
||||
void Destroy() { delete this; }
|
||||
void Received();
|
||||
|
||||
void SetOwner(HWND hwnd) { ASSERT(NULL != hwnd); m_hwndOwner = hwnd; }
|
||||
DWORD GetCookie() { return m_dwCookie; }
|
||||
void SetCookie(DWORD dwCookie) { m_dwCookie = dwCookie; }
|
||||
//
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CCpDibEvent)
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
virtual ~CCpDibEvent();
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CCpDibEvent)
|
||||
// NOTE - the ClassWizard will add and remove member functions here.
|
||||
//}}AFX_MSG
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
// <= 추가한 것임
|
||||
DECLARE_DISPATCH_MAP()
|
||||
DECLARE_INTERFACE_MAP()
|
||||
//
|
||||
private:
|
||||
// <= 추가한 것임
|
||||
HWND m_hwndOwner;
|
||||
DWORD m_dwCookie;
|
||||
|
||||
//
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_CPDIBEVENT_H__B591F279_D708_4C0B_BF79_4B22D8F69845__INCLUDED_)
|
||||
Reference in New Issue
Block a user