You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
846 B
41 lines
846 B
//
|
|
// mes.h
|
|
//
|
|
|
|
#ifndef MES_H
|
|
#define MES_H
|
|
|
|
#include "private.h"
|
|
|
|
typedef HRESULT (*MOUSECALLBACK)(ULONG uEdge, ULONG uQuadrant, DWORD dwBtnStatus, BOOL *pfEaten, void *pv);
|
|
|
|
class CMouseSink : public ITfMouseSink
|
|
{
|
|
public:
|
|
CMouseSink(MOUSECALLBACK pfnCallback, void *pv);
|
|
|
|
//
|
|
// IUnknown methods
|
|
//
|
|
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
|
|
STDMETHODIMP_(ULONG) AddRef(void);
|
|
STDMETHODIMP_(ULONG) Release(void);
|
|
|
|
//
|
|
// ITfMouseSink
|
|
//
|
|
STDMETHODIMP OnMouseEvent(ULONG uEdge, ULONG uQuadrant, DWORD dwBtnStatus, BOOL *pfEaten);
|
|
|
|
HRESULT _Advise(ITfRange *range, ITfContext *pic);
|
|
HRESULT _Unadvise();
|
|
|
|
private:
|
|
|
|
long _cRef;
|
|
ITfContext *_pic;
|
|
DWORD _dwCookie;
|
|
MOUSECALLBACK _pfnCallback;
|
|
void *_pv;
|
|
};
|
|
|
|
#endif // MES_H
|