[saco] Implement CDXUTIMEEditBox::EnableImeSystem(...)

This commit is contained in:
RD42 2024-05-18 22:59:21 +08:00
parent 69708b5ff5
commit ca014a8e6c
2 changed files with 36 additions and 0 deletions

View File

@ -177,6 +177,21 @@ HRESULT CDXUTStatic::GetTextCopy( PCHAR strDest, UINT bufferCount )
return S_OK;
}
//--------------------------------------------------------------------------------------
// CDXUTIMEEditBox class
//--------------------------------------------------------------------------------------
bool CDXUTIMEEditBox::s_bEnableImeSystem; // Whether the IME system is active
//--------------------------------------------------------------------------------------
// Enable/disable the entire IME system. When disabled, the default IME handling
// kicks in.
void CDXUTIMEEditBox::EnableImeSystem( bool bEnable )
{
s_bEnableImeSystem = bEnable;
}
//--------------------------------------------------------------------------------------
void DXUTBlendColor::Init( D3DCOLOR defaultColor, D3DCOLOR disabledColor, D3DCOLOR hiddenColor )
{

View File

@ -278,4 +278,25 @@ protected:
};
//-----------------------------------------------------------------------------
// EditBox control
//-----------------------------------------------------------------------------
class CDXUTEditBox : public CDXUTControl
{
};
//-----------------------------------------------------------------------------
// IME-enabled EditBox control
//-----------------------------------------------------------------------------
class CDXUTIMEEditBox : public CDXUTEditBox
{
public:
static void EnableImeSystem( bool bEnable );
protected:
static bool s_bEnableImeSystem; // Whether the IME system is active
#endif // DXUT_GUI_H