WINCE屏蔽可恶的输入法工具条

控件获得焦点时,屏蔽输入法

void Edit::OnSetFocus(CWnd* pOldWnd)
{
    CEdit::OnSetFocus(pOldWnd);

    // 关闭输入法
    HIMC hIMC = ImmGetContext( this->GetSafeHwnd() );
    ImmSetOpenStatus ( hIMC, FALSE );
}

你可能感兴趣的:(输入法,工具,WinCE)