Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
99cb61ee
Commit
99cb61ee
authored
Feb 26, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Properly send WM_IME_NOTIFY using SendMessage.
parent
e161dd92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
imm.c
dlls/imm32/imm.c
+20
-5
No files found.
dlls/imm32/imm.c
View file @
99cb61ee
...
...
@@ -169,6 +169,21 @@ static void ImmInternalPostIMEMessage(UINT msg, WPARAM wParam, LPARAM lParam)
PostMessageW
(
target
,
msg
,
wParam
,
lParam
);
}
static
LRESULT
ImmInternalSendIMENotify
(
WPARAM
notify
,
LPARAM
lParam
)
{
LRESULT
rc
=
0
;
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
);
}
return
rc
;
}
static
void
ImmInternalSetOpenStatus
(
BOOL
fOpen
)
{
...
...
@@ -202,7 +217,7 @@ static void ImmInternalSetOpenStatus(BOOL fOpen)
else
ShowWindow
(
hwndDefault
,
SW_SHOWNOACTIVATE
);
SendMessageW
(
root_context
->
hwnd
,
WM_IME_NOTIFY
,
IMN_SETOPENSTATUS
,
0
);
ImmInternalSendIMENotify
(
IMN_SETOPENSTATUS
,
0
);
}
...
...
@@ -1231,7 +1246,7 @@ BOOL WINAPI ImmSetCompositionFontA(HIMC hIMC, LPLOGFONTA lplf)
MultiByteToWideChar
(
CP_ACP
,
0
,
lplf
->
lfFaceName
,
-
1
,
data
->
font
.
lfFaceName
,
LF_FACESIZE
);
ImmInternal
PostIMEMessage
(
WM_IME_NOTIFY
,
IMN_SETCOMPOSITIONFONT
,
0
);
ImmInternal
SendIMENotify
(
IMN_SETCOMPOSITIONFONT
,
0
);
if
(
data
->
textfont
)
{
...
...
@@ -1255,7 +1270,7 @@ BOOL WINAPI ImmSetCompositionFontW(HIMC hIMC, LPLOGFONTW lplf)
return
FALSE
;
memcpy
(
&
data
->
font
,
lplf
,
sizeof
(
LOGFONTW
));
ImmInternal
PostIMEMessage
(
WM_IME_NOTIFY
,
IMN_SETCOMPOSITIONFONT
,
0
);
ImmInternal
SendIMENotify
(
IMN_SETCOMPOSITIONFONT
,
0
);
if
(
data
->
textfont
)
{
...
...
@@ -1406,7 +1421,7 @@ BOOL WINAPI ImmSetCompositionWindow(
if
(
reshow
)
ShowWindow
(
hwndDefault
,
SW_SHOWNOACTIVATE
);
ImmInternal
PostIMEMessage
(
WM_IME_NOTIFY
,
IMN_SETCOMPOSITIONWINDOW
,
0
);
ImmInternal
SendIMENotify
(
IMN_SETCOMPOSITIONWINDOW
,
0
);
return
TRUE
;
}
...
...
@@ -1435,7 +1450,7 @@ BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
if
(
hIMC
==
(
HIMC
)
FROM_IME
)
{
ImmInternalSetOpenStatus
(
fOpen
);
ImmInternal
PostIMEMessage
(
WM_IME_NOTIFY
,
IMN_SETOPENSTATUS
,
0
);
ImmInternal
SendIMENotify
(
IMN_SETOPENSTATUS
,
0
);
return
TRUE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment