|
#ifndef __WMMOUSE_H__
#define __WMMOUSE_H__
#include <windows.h>
#include "wmmousedll.h"
//
// a wrapper class to access the wmmousedll
//
class WMMouse
{
protected:
static HINSTANCE mMouseDllHinst;
static SETKBHOOK mSetMouseHook;
static REMOVEKBHOOK mRemoveMouseHook;
static GETINSTANCECOUNT mGetInstanceCount;
public:
static bool Init();
static void Done()
{ if (mMouseDllHinst) FreeLibrary(mMouseDllHinst); }
static void SetMouseHook()
{ if (mMouseDllHinst) mSetMouseHook(); }
static void RemoveMouseHook()
{ if (mMouseDllHinst) mRemoveMouseHook(); }
static int GetInstanceCount()
{
if (mMouseDllHinst)
return mGetInstanceCount();
else
return 0;
}
};
#endif // __WMMOUSE_H__
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.