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.
51 lines
1.0 KiB
51 lines
1.0 KiB
//
|
|
// candkey.h - CandidateUI Key Table
|
|
//
|
|
|
|
#ifndef CANDKEY_H
|
|
#define CANDKEY_H
|
|
|
|
#include "private.h"
|
|
#include "globals.h"
|
|
#include "mscandui.h"
|
|
|
|
//
|
|
// CCandUIKeyTable
|
|
// = candidate ui key table =
|
|
//
|
|
|
|
class CCandUIKeyTable : public ITfCandUIKeyTable
|
|
{
|
|
public:
|
|
CCandUIKeyTable( void );
|
|
virtual ~CCandUIKeyTable( void );
|
|
|
|
//
|
|
// IUnknown methods
|
|
//
|
|
STDMETHODIMP QueryInterface( REFIID riid, void **ppvObj );
|
|
STDMETHODIMP_(ULONG) AddRef( void );
|
|
STDMETHODIMP_(ULONG) Release( void );
|
|
|
|
//
|
|
// ITfCandUIKeyTable
|
|
//
|
|
STDMETHODIMP GetKeyDataNum( int *piNum );
|
|
STDMETHODIMP GetKeyData( int iData, CANDUIKEYDATA *pData );
|
|
|
|
//
|
|
//
|
|
//
|
|
HRESULT SetKeyTable( const CANDUIKEYDATA *pKeyData, int nKeyData );
|
|
HRESULT SetKeyTable( ITfCandUIKeyTable *pCandUIKeyTable );
|
|
void CommandFromKey( UINT uVkey, WCHAR wch, BYTE *pbKeyState, CANDUIUIDIRECTION uidir, CANDUICOMMAND *pcmd, UINT *pParam );
|
|
|
|
protected:
|
|
long m_cRef;
|
|
int m_nKeyData;
|
|
CANDUIKEYDATA *m_pKeyData;
|
|
};
|
|
|
|
|
|
#endif // CANDKEY_H
|
|
|