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
44 lines
891 B
//
|
|
// tes.h
|
|
//
|
|
// ITfTextEventSink object
|
|
//
|
|
|
|
#if !defined (__TEXTSINK_H__INCLUDED_)
|
|
#define __TEXTSINK_H__INCLUDED_
|
|
|
|
#include "private.h"
|
|
|
|
#define TES_INVALID_COOKIE ((DWORD)(-1))
|
|
|
|
class CTextEditSink : public ITfTextEditSink
|
|
{
|
|
public:
|
|
CTextEditSink(void *pv);
|
|
|
|
//
|
|
// IUnknown methods
|
|
//
|
|
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
|
|
STDMETHODIMP_(ULONG) AddRef(void);
|
|
STDMETHODIMP_(ULONG) Release(void);
|
|
|
|
//
|
|
// ITfTextEditSink
|
|
//
|
|
STDMETHODIMP OnEndEdit(TfEditCookie ecReadOnly, ITfEditRecord *pEditRecord);
|
|
|
|
HRESULT _Advise(ITfContext *pic);
|
|
HRESULT _Unadvise();
|
|
|
|
private:
|
|
|
|
long m_cRef;
|
|
ITfContext *m_pic;
|
|
DWORD m_dwEditCookie;
|
|
// DWORD m_dwLayoutCookie;
|
|
// DWORD m_dwFlags;
|
|
void *m_pv;
|
|
};
|
|
|
|
#endif // __TEXTSINK_H__INCLUDED_
|