mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[saco] Implement/match CDXUTIMEEditBox::OnFocusIn
This commit is contained in:
1 parent
ffe3070244
commit
987eb4a9fc
1 file changed
+11
-12
@@ -6191,20 +6191,19 @@ void CDXUTIMEEditBox::OnFocusIn()
|
||||
{
|
||||
_ImmAssociateContext( pGame->GetMainWindowHwnd(), s_hImcDef );
|
||||
CheckToggleState();
|
||||
} else
|
||||
_ImmAssociateContext( pGame->GetMainWindowHwnd(), NULL );
|
||||
|
||||
//
|
||||
// Set up the IME global state according to the current instance state
|
||||
//
|
||||
HIMC hImc;
|
||||
if( NULL != ( hImc = _ImmGetContext( pGame->GetMainWindowHwnd() ) ) )
|
||||
{
|
||||
if( !s_bEnableImeSystem )
|
||||
s_ImeState = IMEUI_STATE_OFF;
|
||||
//
|
||||
// Set up the IME global state according to the current instance state
|
||||
//
|
||||
HIMC hImc;
|
||||
if( NULL != ( hImc = _ImmGetContext( pGame->GetMainWindowHwnd() ) ) )
|
||||
{
|
||||
if( !s_bEnableImeSystem )
|
||||
s_ImeState = IMEUI_STATE_OFF;
|
||||
|
||||
_ImmReleaseContext( pGame->GetMainWindowHwnd(), hImc );
|
||||
CheckToggleState();
|
||||
_ImmReleaseContext( pGame->GetMainWindowHwnd(), hImc );
|
||||
CheckToggleState();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user