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.

54 lines
1023 B

  1. //
  2. // editcb.h
  3. //
  4. // CEditSession
  5. //
  6. #ifndef EDITCB_H
  7. #define EDITCB_H
  8. #include "private.h"
  9. class CEditSession;
  10. typedef HRESULT (*ESCALLBACK)(TfEditCookie ec, CEditSession *);
  11. class CEditSession : public ITfEditSession
  12. {
  13. public:
  14. CEditSession(ESCALLBACK pfnCallback);
  15. virtual ~CEditSession() {};
  16. //
  17. // IUnknown methods
  18. //
  19. STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
  20. STDMETHODIMP_(ULONG) AddRef(void);
  21. STDMETHODIMP_(ULONG) Release(void);
  22. //
  23. // ITfEditCallback
  24. //
  25. STDMETHODIMP DoEditSession(TfEditCookie ec);
  26. // data for use by owner
  27. struct
  28. {
  29. void *pv;
  30. UINT_PTR u;
  31. HWND hwnd;
  32. WPARAM wParam;
  33. LPARAM lParam;
  34. void *pv1;
  35. void *pv2;
  36. ITfContext *pic; // Issue: use pv1, pv2
  37. ITfRange *pRange; // Issue: use pv1, pv2
  38. BOOL fBool;
  39. } _state;
  40. private:
  41. ESCALLBACK _pfnCallback;
  42. int _cRef;
  43. };
  44. #endif // EDIT_CB