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.

70 lines
1.9 KiB

  1. /**************************************************************************\
  2. * Module Name: fnsoftkbd.h
  3. *
  4. * Copyright (c) 1985 - 2000, Microsoft Corporation
  5. *
  6. * Declaration of SoftKbd function object. This Function object could be used
  7. * by other Tips to control Softkbd IMX's behavior.
  8. *
  9. * History:
  10. * 11-April-2000 weibz Created
  11. \**************************************************************************/
  12. #ifndef FNSOFTKBD_H
  13. #define FNSOFTKBD_H
  14. #include "private.h"
  15. #include "softkbd.h"
  16. class CFunctionProvider;
  17. //////////////////////////////////////////////////////////////////////////////
  18. //
  19. // CFnSoftKbd
  20. //
  21. //////////////////////////////////////////////////////////////////////////////
  22. class CFnSoftKbd : public ITfFnSoftKbd
  23. {
  24. public:
  25. CFnSoftKbd(CFunctionProvider *pFuncPrv);
  26. ~CFnSoftKbd();
  27. //
  28. // IUnknown methods
  29. //
  30. STDMETHODIMP QueryInterface(REFIID riid, void **ppvObj);
  31. STDMETHODIMP_(ULONG) AddRef(void);
  32. STDMETHODIMP_(ULONG) Release(void);
  33. //
  34. // ITfFunction
  35. //
  36. STDMETHODIMP GetDisplayName(BSTR *pbstrCand);
  37. STDMETHODIMP IsEnabled(BOOL *pfEnable);
  38. //
  39. // ITfFnSoftKbd
  40. //
  41. STDMETHODIMP GetSoftKbdLayoutId(DWORD dwLayoutType, DWORD *lpdwLayoutId);
  42. STDMETHODIMP SetActiveLayoutId(DWORD dwLayoutId );
  43. STDMETHODIMP SetSoftKbdOnOff(BOOL fOn );
  44. STDMETHODIMP SetSoftKbdPosSize(POINT StartPoint, WORD width, WORD height);
  45. STDMETHODIMP SetSoftKbdColors(COLORTYPE colorType, COLORREF Color);
  46. STDMETHODIMP GetActiveLayoutId(DWORD *lpdwLayoutId );
  47. STDMETHODIMP GetSoftKbdOnOff(BOOL *lpfOn );
  48. STDMETHODIMP GetSoftKbdPosSize(POINT *lpStartPoint,WORD *lpwidth,WORD *lpheight);
  49. STDMETHODIMP GetSoftKbdColors(COLORTYPE colorType, COLORREF *lpColor);
  50. private:
  51. friend CSoftkbdIMX;
  52. CFunctionProvider *_pFuncPrv;
  53. long _cRef;
  54. };
  55. #endif // FNSOFTKBD_H