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.

32 lines
748 B

  1. //
  2. // FMODE.H
  3. //
  4. #if !defined (__FMODE_H__INCLUDED_)
  5. #define __FMODE_H__INCLUDED_
  6. #include "cicbtn.h"
  7. #include "toolbar.h"
  8. class FMode : public CCicButton
  9. {
  10. public:
  11. FMode(CToolBar *ptb);
  12. ~FMode() {}
  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 // __FMODE_H__INCLUDED_