mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
imm32: Simplify ImmInternalSendIMENotify.
This commit is contained in:
parent
fbc80d79b3
commit
f0e88c2aef
1 changed files with 7 additions and 10 deletions
|
@ -171,18 +171,15 @@ static void ImmInternalPostIMEMessage(UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
static LRESULT ImmInternalSendIMENotify(WPARAM notify, LPARAM lParam)
|
||||
{
|
||||
LRESULT rc = 0;
|
||||
HWND target;
|
||||
|
||||
if (root_context->hwnd)
|
||||
rc = SendMessageW(root_context->hwnd, WM_IME_NOTIFY, notify, lParam);
|
||||
else
|
||||
{
|
||||
HWND target = GetFocus();
|
||||
if (target)
|
||||
rc = SendMessageW(target, WM_IME_NOTIFY, notify, lParam);
|
||||
}
|
||||
target = root_context->hwnd;
|
||||
if (!target) target = GetFocus();
|
||||
|
||||
return rc;
|
||||
if (target)
|
||||
return SendMessageW(target, WM_IME_NOTIFY, notify, lParam);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ImmInternalSetOpenStatus(BOOL fOpen)
|
||||
|
|
Loading…
Reference in a new issue