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.

73 lines
1.6 KiB

  1. //
  2. // TOOLBAR.H
  3. //
  4. // History:
  5. // 24-JAN-2000 CSLim Created
  6. #if !defined (__TOOLBAR_H__INCLUDED_)
  7. #define __TOOLBAR_H__INCLUDED_
  8. #include "globals.h"
  9. class CKorIMX;
  10. class CMode;
  11. class FMode;
  12. class HJMode;
  13. class CPad;
  14. class CSoftKbdMode;
  15. #define UPDTTB_NONE 0x00000000
  16. #define UPDTTB_CMODE 0x00000001
  17. #define UPDTTB_FHMODE 0x00000002 // Full/Half shape mode
  18. #define UPDTTB_HJMODE 0x00000004 // Hanja mode
  19. #define UPDTTB_SKDMODE 0x00000008 // Soft keyboard mode
  20. #define UPDTTB_ALL (UPDTTB_CMODE|UPDTTB_FHMODE|UPDTTB_HJMODE|UPDTTB_SKDMODE)
  21. class CToolBar
  22. {
  23. public:
  24. CKorIMX* m_pimx;
  25. ITfContext* m_pic;
  26. CToolBar(CKorIMX* pImx);
  27. ~CToolBar();
  28. void CheckEnable();
  29. void SetCurrentIC(ITfContext* pic);
  30. void SetUIFocus(BOOL fFocus);
  31. BOOL Initialize();
  32. VOID Terminate();
  33. DWORD SetConversionMode(DWORD dwConvMod);
  34. UINT GetConversionMode(ITfContext *pic = NULL);
  35. UINT GetConversionModeIDI(ITfContext *pic = NULL);
  36. BOOL Update(DWORD dwUpdate = UPDTTB_NONE, BOOL fRefresh = fFalse);
  37. BOOL IsOn(ITfContext *pic = NULL);
  38. BOOL SetOnOff(BOOL fOn);
  39. ITfContext* GetIC() { return m_pic; }
  40. HWND GetOwnerWnd(ITfContext *pic = NULL);
  41. CSoftKbdMode *GetSkbdMode() { return m_pSkbdMode; }
  42. IImeIPoint1* GetIPoint(ITfContext *pic = NULL);
  43. private:
  44. BOOL m_fFocus;
  45. CMode *m_pCMode;
  46. FMode *m_pFMode;
  47. HJMode *m_pHJMode;
  48. #if !defined(_WIN64)
  49. CPad *m_pPad;
  50. #endif
  51. CSoftKbdMode *m_pSkbdMode;
  52. CMode *GetCMode() { return m_pCMode; }
  53. FMode *GetFMode() { return m_pFMode; }
  54. HJMode *GetHJMode() { return m_pHJMode; }
  55. };
  56. #endif // __TOOLBAR_H__INCLUDED_