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.

33 lines
803 B

  1. //
  2. // SKBDMODE.H
  3. //
  4. #if !defined (__SKBDMODE_H__INCLUDED_)
  5. #define __SKBDMODE_H__INCLUDED_
  6. #include "cicbtn.h"
  7. #include "toolbar.h"
  8. class CSoftKbdMode : public CCicButton
  9. {
  10. public:
  11. CSoftKbdMode(CToolBar *ptb);
  12. ~CSoftKbdMode() {}
  13. STDMETHODIMP GetIcon(HICON *phIcon);
  14. HRESULT OnLButtonUp(const POINT pt, const RECT* prcArea);
  15. //HRESULT OnRButtonUp(const POINT pt, const RECT* prcArea);
  16. STDMETHODIMP InitMenu(ITfMenu *pMenu);
  17. STDMETHODIMP OnMenuSelect(UINT wID);
  18. STDMETHODIMP_(ULONG) Release(void);
  19. void UpdateToggle();
  20. private:
  21. DWORD GetCMode() { return m_pTb->GetConversionMode(); }
  22. DWORD SetCMode(DWORD dwConvMode) { return m_pTb->SetConversionMode(dwConvMode); }
  23. CToolBar *m_pTb;
  24. };
  25. #endif // __SKBDMODE_H__INCLUDED_