Windows2003-3790/windows/feime/kor/ime2k/tip/candkey.h
2020-09-30 16:53:55 +02:00

48 lines
811 B
C++

//
// candkey.h
//
#if !defined (__CANDKEY_H__INCLUDED_)
#define __CANDKEY_H__INCLUDED_
#include "private.h"
#include "mscandui.h"
//
// CCandUIKeyTable
//
class CCandUIKeyTable : public ITfCandUIKeyTable
{
public:
CCandUIKeyTable(int nData);
~CCandUIKeyTable();
//
// IUnknown methods
//
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
//
// ITfCandUIKeyTable
//
STDMETHODIMP GetKeyDataNum(int *piNum);
STDMETHODIMP GetKeyData(int iData, CANDUIKEYDATA *pData);
//
//
//
HRESULT AddKeyData(const CANDUIKEYDATA *pData);
protected:
long m_cRef;
CANDUIKEYDATA *m_pData;
int m_nData;
int m_nDataMax;
};
#endif // __CANDKEY_H__INCLUDED_