From 9c450e599acd35f6dccc631b41f8c1ee4424ab27 Mon Sep 17 00:00:00 2001 From: mjjo Date: Sun, 21 Jul 2013 00:33:25 +0000 Subject: [PATCH] --- CpDibEvent.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 CpDibEvent.h diff --git a/CpDibEvent.h b/CpDibEvent.h new file mode 100644 index 0000000..1da2dca --- /dev/null +++ b/CpDibEvent.h @@ -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_)