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.
54 lines
1.0 KiB
54 lines
1.0 KiB
/*++
|
|
|
|
Copyright (c) 2001, Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
defimehd.cpp
|
|
|
|
Abstract:
|
|
|
|
This file implements the default IME sub window handler Class.
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
#include "private.h"
|
|
#include "uiwndhd.h"
|
|
|
|
//+---------------------------------------------------------------------------
|
|
//
|
|
// CtfImeDispatchDefImeMessage
|
|
//
|
|
//+---------------------------------------------------------------------------
|
|
|
|
LRESULT
|
|
CtfImeDispatchDefImeMessage(
|
|
HWND hDefImeWnd,
|
|
UINT message,
|
|
WPARAM wParam,
|
|
LPARAM lParam)
|
|
{
|
|
if (!IsMsImeMessage(message))
|
|
return 0;
|
|
|
|
HKL hkl = GetKeyboardLayout(0);
|
|
if (IS_IME_KBDLAYOUT(hkl))
|
|
return 0;
|
|
|
|
HWND hUIWnd = (HWND)SendMessage(hDefImeWnd,
|
|
WM_IME_NOTIFY,
|
|
IMN_PRIVATE_GETUIWND,
|
|
0);
|
|
|
|
if (IsWindow(hUIWnd))
|
|
return SendMessage(hUIWnd, message, wParam, lParam);
|
|
|
|
return 0;
|
|
}
|
|
|