Leaked source code of windows server 2003
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

  1. //
  2. // mes.h
  3. //
  4. #ifndef MES_H
  5. #define MES_H
  6. #include "private.h"
  7. typedef HRESULT (*MOUSECALLBACK)(ULONG uEdge, ULONG uQuadrant, DWORD dwBtnStatus, BOOL *pfEaten, void *pv);
  8. class CMouseSink : public ITfMouseSink
  9. {
  10. public:
  11. CMouseSink(MOUSECALLBACK pfnCallback, void *pv);
  12. //
  13. // IUnknown methods
  14. //
  15. STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
  16. STDMETHODIMP_(ULONG) AddRef(void);
  17. STDMETHODIMP_(ULONG) Release(void);
  18. //
  19. // ITfMouseSink
  20. //
  21. STDMETHODIMP OnMouseEvent(ULONG uEdge, ULONG uQuadrant, DWORD dwBtnStatus, BOOL *pfEaten);
  22. HRESULT _Advise(ITfRange *range, ITfContext *pic);
  23. HRESULT _Unadvise();
  24. private:
  25. long _cRef;
  26. ITfContext *_pic;
  27. DWORD _dwCookie;
  28. MOUSECALLBACK _pfnCallback;
  29. void *_pv;
  30. };
  31. #endif // MES_H