Files
admin
base
com
developer
drivers
ds
enduser
inetcore
inetsrv
loc
mergedcomponents
multimedia
net
printscan
public
published
sdktools
shell
termsrv
tools
windows
advcore
appcompat
core
ddk
dload
feime
chnuconv
chs
cht
ddk
fe
jpn
kor
ime2k
cicerolib
inc
catutil.h
ccstock.h
cleanup.h
cmydc.h
computil.h
cuilib.h
dap.h
dbgid.h
debug.h
dispattr.h
editcb.h
fnprbase.h
globals.h
helpers.h
iconlib.h
icrtfree.h
immxutil.h
insert.h
kes.h
makefile
mem.h
mes.h
mscandui.idl
msctfp.idl
nuibase.h
osver.h
proj.h
proputil.h
ptrary.h
regimx.h
regsvr.h
sdo.h
slbarid.h
softkbd.h
softkbd.idl
sources
statsink.h
strary.h
tes.h
timsink.h
validate.h
xstring.h
src
dirs
dicts
doc
embedded
fecommon
hanjadic
help
hwx
imkrinst
imm32
inc
ntmigexe
setup
tip
version
common.inc
dirs
johab
res
uhc
uniime
wansung
dirs
escape.c
hangeul.h
hatmt.c
hatmt.h
hkeytbl.c
imeui.c
main.c
tools
usa
dirs
netdde
oleacc
published
richedit
winstate
dirs
project.mk
dirs
makefil0
2025-04-27 07:49:33 -04:00

42 lines
846 B
C++

//
// 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