[4/5] imm32: Move default IME window creation to WM_NCCREATE hook.

Aric Stewart aric at codeweavers.com
Thu Mar 3 08:58:14 CST 2016


Hooks are only installed if GetSystemMetrics(SM_DBCSENABLED) and GetSystemMetrics(SM_IMMENABLED) are both true.

Your earlier patch which implement SM_IMEENABLED turns it on if GetVersion() & 0xff >= 6 or if the version is == 5 SM_DBCSENABLED, what window versions. So Any prefix with a version of lower than XP would no longer have default IME windows?   For Windows XP  and higher then we need SM_DBCSENABLED to be true.

SM_DBCSENABLED results in the codepage having a MaxCharSize as > 1, which looks like it pretty much always true, especially for UTF8, but under which situations would that not be the case, and again we would be disabling the default IME window?

I like what you are doing here, I just want to understand what situations we would be disabling ime input.

-aric


On 3/2/16 7:54 AM, Akihiro Sagawa wrote:
> 
> In other words, we no longer create it in ImmGetDefaultIMEWnd().
> 
> Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
> ---
>   dlls/imm32/imm.c | 59 ++++++++++++++++++++++++++++++++++----------------------
>   1 file changed, 36 insertions(+), 23 deletions(-)
> 
> 
> 
> 



More information about the wine-devel mailing list