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.

31 lines
742 B

  1. //
  2. // CMODE.H
  3. //
  4. #if !defined (__CMODE_H__INCLUDED_)
  5. #define __CMODE_H__INCLUDED_
  6. #include "cicbtn.h"
  7. #include "toolbar.h"
  8. class CMode : public CCicButton
  9. {
  10. public:
  11. CMode(CToolBar *ptb);
  12. ~CMode() {}
  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. private:
  20. DWORD GetCMode() { return m_pTb->GetConversionMode(); }
  21. DWORD SetCMode(DWORD dwConvMode) { return m_pTb->SetConversionMode(dwConvMode); }
  22. CToolBar *m_pTb;
  23. };
  24. #endif // __CMODE_H__INCLUDED_