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.
 
 
 
 
 
 

78 lines
1.8 KiB

//
// TOOLBAR.H
//
// History:
// 29-MAY-2000 CSLIM Adapted to IME
// 24-JAN-2000 CSLIM Created
#if !defined (__TOOLBAR_H__INCLUDED_)
#define __TOOLBAR_H__INCLUDED_
#include "imc.h"
class CMode;
class FMode;
class HJMode;
class PMode;
class PropertyButton;
class CSysHelpSink;
#define UPDTTB_NONE 0x00000000
#define UPDTTB_CMODE 0x00000001
#define UPDTTB_FHMODE 0x00000002 // Full/Half shape mode
#define UPDTTB_HJMODE 0x00000004 // Hanja mode
#define UPDTTB_PAD 0x00000008 // Pad button
#define UPDTTB_PROP 0x00000010 // Properties button
#define UPDTTB_ALL (UPDTTB_CMODE|UPDTTB_FHMODE|UPDTTB_HJMODE|UPDTTB_PAD|UPDTTB_PROP)
class CToolBar
{
public:
CToolBar();
~CToolBar();
BOOL Initialize();
void Terminate();
void CheckEnable();
void SetCurrentIC(PCIMECtx pImeCtx);
DWORD SetConversionMode(DWORD dwConvMod);
DWORD GetConversionMode(PCIMECtx pImeCtx = NULL);
// UINT GetConversionModeIDI(PCIMECtx pImeCtx = NULL);
BOOL Update(DWORD dwUpdate = UPDTTB_NONE, BOOL fRefresh = fFalse);
BOOL IsOn(PCIMECtx pImeCtx = NULL);
BOOL SetOnOff(BOOL fOn);
PCIMECtx GetImeCtx() { return m_pImeCtx; }
HWND GetOwnerWnd(PCIMECtx pImeCtx = NULL);
// Syshelp callback (Cicero)
static HRESULT SysInitMenu(void *pv, ITfMenu* pMenu);
static HRESULT OnSysMenuSelect(void *pv, UINT uiCmd);
private:
PCIMECtx m_pImeCtx;
BOOL m_fToolbarInited;
CMode *m_pCMode;
FMode *m_pFMode;
HJMode *m_pHJMode;
#if !defined(_WIN64)
PMode *m_pPMode;
#endif
CSysHelpSink *m_pSysHelp;
CMode *GetCMode() { return m_pCMode; }
FMode *GetFMode() { return m_pFMode; }
HJMode *GetHJMode() { return m_pHJMode; }
#if !defined(_WIN64)
PMode *GetPMode() { return m_pPMode; }
#endif
};
#endif // __TOOLBAR_H__INCLUDED_