AxibugEmuOnline/References/VirtuaNESex_src_191105/WndHook.h

38 lines
745 B
C
Raw Normal View History

2024-08-05 17:58:53 +08:00
//
// <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__