Windows2003-3790/windows/feime/kor/ime2k/imm32/hjmode.h

33 lines
749 B
C
Raw Permalink Normal View History

2001-01-01 00:00:00 +01:00
//
// HJMODE.H
//
#if !defined (__HJMODE_H__INCLUDED_)
#define __HJMODE_H__INCLUDED_
#include "cicbtn.h"
#include "toolbar.h"
class HJMode : public CCicButton
{
public:
HJMode(CToolBar *ptb);
~HJMode() {}
STDMETHODIMP GetIcon(HICON *phIcon);
HRESULT OnLButtonUp(const POINT pt, const RECT* prcArea);
HRESULT OnRButtonUp(const POINT pt, const RECT* prcArea);
STDMETHODIMP InitMenu(ITfMenu *pMenu);
STDMETHODIMP OnMenuSelect(UINT wID);
STDMETHODIMP_(ULONG) Release(void);
private:
DWORD GetCMode() { return m_pTb->GetConversionMode(); }
DWORD SetCMode(DWORD dwConvMode) { return m_pTb->SetConversionMode(dwConvMode); }
CToolBar *m_pTb;
};
#endif // __HJMODE_H__INCLUDED_