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.

44 lines
891 B

  1. //
  2. // tes.h
  3. //
  4. // ITfTextEventSink object
  5. //
  6. #if !defined (__TEXTSINK_H__INCLUDED_)
  7. #define __TEXTSINK_H__INCLUDED_
  8. #include "private.h"
  9. #define TES_INVALID_COOKIE ((DWORD)(-1))
  10. class CTextEditSink : public ITfTextEditSink
  11. {
  12. public:
  13. CTextEditSink(void *pv);
  14. //
  15. // IUnknown methods
  16. //
  17. STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
  18. STDMETHODIMP_(ULONG) AddRef(void);
  19. STDMETHODIMP_(ULONG) Release(void);
  20. //
  21. // ITfTextEditSink
  22. //
  23. STDMETHODIMP OnEndEdit(TfEditCookie ecReadOnly, ITfEditRecord *pEditRecord);
  24. HRESULT _Advise(ITfContext *pic);
  25. HRESULT _Unadvise();
  26. private:
  27. long m_cRef;
  28. ITfContext *m_pic;
  29. DWORD m_dwEditCookie;
  30. // DWORD m_dwLayoutCookie;
  31. // DWORD m_dwFlags;
  32. void *m_pv;
  33. };
  34. #endif // __TEXTSINK_H__INCLUDED_