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.

51 lines
1.0 KiB

  1. //
  2. // candkey.h - CandidateUI Key Table
  3. //
  4. #ifndef CANDKEY_H
  5. #define CANDKEY_H
  6. #include "private.h"
  7. #include "globals.h"
  8. #include "mscandui.h"
  9. //
  10. // CCandUIKeyTable
  11. // = candidate ui key table =
  12. //
  13. class CCandUIKeyTable : public ITfCandUIKeyTable
  14. {
  15. public:
  16. CCandUIKeyTable( void );
  17. virtual ~CCandUIKeyTable( void );
  18. //
  19. // IUnknown methods
  20. //
  21. STDMETHODIMP QueryInterface( REFIID riid, void **ppvObj );
  22. STDMETHODIMP_(ULONG) AddRef( void );
  23. STDMETHODIMP_(ULONG) Release( void );
  24. //
  25. // ITfCandUIKeyTable
  26. //
  27. STDMETHODIMP GetKeyDataNum( int *piNum );
  28. STDMETHODIMP GetKeyData( int iData, CANDUIKEYDATA *pData );
  29. //
  30. //
  31. //
  32. HRESULT SetKeyTable( const CANDUIKEYDATA *pKeyData, int nKeyData );
  33. HRESULT SetKeyTable( ITfCandUIKeyTable *pCandUIKeyTable );
  34. void CommandFromKey( UINT uVkey, WCHAR wch, BYTE *pbKeyState, CANDUIUIDIRECTION uidir, CANDUICOMMAND *pcmd, UINT *pParam );
  35. protected:
  36. long m_cRef;
  37. int m_nKeyData;
  38. CANDUIKEYDATA *m_pKeyData;
  39. };
  40. #endif // CANDKEY_H