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.

75 lines
1.8 KiB

  1. //
  2. // nuihkl.h
  3. //
  4. #ifndef NUICTRLL_H
  5. #define NUICTRLL_H
  6. #include "private.h"
  7. #include "strary.h"
  8. #include "commctrl.h"
  9. #include "internat.h"
  10. #include "nuihkl.h"
  11. #include "assembly.h"
  12. #include "systhrd.h"
  13. extern HRESULT WINAPI TF_RunInputCPL();
  14. //////////////////////////////////////////////////////////////////////////////
  15. //
  16. // CLBarItemCtrl
  17. //
  18. //////////////////////////////////////////////////////////////////////////////
  19. class CLBarItemCtrl : public CLBarItemButtonBase,
  20. public CSysThreadRef
  21. {
  22. public:
  23. CLBarItemCtrl(SYSTHREAD *psfn);
  24. ~CLBarItemCtrl();
  25. STDMETHODIMP InitMenu(ITfMenu *pMenu);
  26. STDMETHODIMP OnMenuSelect(UINT wID);
  27. void OnShellLanguage(HKL hKL);
  28. void _UpdateLangIcon(HKL hKL, BOOL fNotify);
  29. void _UpdateLangIconForCic(BOOL fNotify);
  30. void _AsmListUpdated(BOOL fNotify);
  31. void OnSysColorChanged();
  32. private:
  33. void _Init();
  34. void _ShowLanguageMenu(HWND hwnd, LONG xPos, LONG yPos, RECT *prcArea);
  35. BOOL _HandleLangMenuMeasure(HWND hwnd, LPMEASUREITEMSTRUCT lpmi);
  36. BOOL _HandleLangMenuDraw(HWND hwnd, LPDRAWITEMSTRUCT lpdi);
  37. void _ShowAssemblyMenu(HWND hwnd, const LONG xPos, const LONG yPos, const RECT *prcArea);
  38. int _meEto;
  39. LANGID _langidForIcon;
  40. DBG_ID_DECLARE;
  41. };
  42. //////////////////////////////////////////////////////////////////////////////
  43. //
  44. // CLBarItemHelp
  45. //
  46. //////////////////////////////////////////////////////////////////////////////
  47. class CLBarItemHelp : public CLBarItemSystemButtonBase
  48. {
  49. public:
  50. CLBarItemHelp(SYSTHREAD *psfn);
  51. ~CLBarItemHelp() {}
  52. STDMETHODIMP GetIcon(HICON *phIcon);
  53. STDMETHODIMP InitMenu(ITfMenu *pMenu);
  54. STDMETHODIMP OnMenuSelect(UINT wID);
  55. private:
  56. BOOL InvokeCicHelp();
  57. DBG_ID_DECLARE;
  58. };
  59. #endif // NUICTRLL_H