forked from sin365/AxibugEmuOnline
38 lines
745 B
C
38 lines
745 B
C
|
//
|
|||
|
// <20><><EFBFBD>b<EFBFBD>Z<EFBFBD>[<5B>W<EFBFBD>t<EFBFBD>B<EFBFBD><42><EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD>N<EFBFBD><4E><EFBFBD>X
|
|||
|
//
|
|||
|
#ifndef __CWNDHOOK_INCLUDED__
|
|||
|
#define __CWNDHOOK_INCLUDED__
|
|||
|
|
|||
|
#define WIN32_LEAN_AND_MEAN
|
|||
|
#include <windows.h>
|
|||
|
|
|||
|
// prototypes
|
|||
|
class CWnd;
|
|||
|
|
|||
|
class CWndHook
|
|||
|
{
|
|||
|
public:
|
|||
|
static void Initialize();
|
|||
|
static void Release();
|
|||
|
|
|||
|
static void SetFiltering( BOOL bMode ) { m_bMsgFiltering = bMode; }
|
|||
|
|
|||
|
static BOOL WalkPreTranslateTree( MSG* lpMsg );
|
|||
|
|
|||
|
protected:
|
|||
|
static LRESULT CALLBACK MessageFilterProc( INT code, WPARAM wParam, LPARAM lParam );
|
|||
|
|
|||
|
// <20><><EFBFBD>b<EFBFBD>Z<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD>t<EFBFBD>B<EFBFBD><42><EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD>邩<EFBFBD>ǂ<EFBFBD><C782><EFBFBD><EFBFBD>̃t<CC83><74><EFBFBD>O
|
|||
|
static BOOL m_bMsgFiltering;
|
|||
|
|
|||
|
// <20><><EFBFBD>b<EFBFBD>Z<EFBFBD>[<5B>W<EFBFBD><57><EFBFBD>t<EFBFBD>B<EFBFBD><42><EFBFBD>^<5E><><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>ǂ<EFBFBD><C782><EFBFBD><EFBFBD>̃t<CC83><74><EFBFBD>O
|
|||
|
static BOOL m_bMsgFilter;
|
|||
|
// <20><><EFBFBD>̃t<CC83>b<EFBFBD>N<EFBFBD>v<EFBFBD><76><EFBFBD>V<EFBFBD>[<5B>W<EFBFBD><57>
|
|||
|
static HHOOK m_hOldMsgFilter;
|
|||
|
private:
|
|||
|
};
|
|||
|
|
|||
|
#endif // !__CWNDHOOK_INCLUDED__
|
|||
|
|