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
3b4aa166
Commit
3b4aa166
authored
Apr 03, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Rewrite ImmInternalPostIMEMessage helper as imc_post_message.
parent
f6cf1d44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
imm.c
dlls/imm32/imm.c
+6
-15
No files found.
dlls/imm32/imm.c
View file @
3b4aa166
...
...
@@ -734,14 +734,11 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
return
TRUE
;
}
/* for posting messages as the IME */
static
void
ImmInternalPostIMEMessage
(
struct
imc
*
data
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
void
imc_post_message
(
struct
imc
*
imc
,
TRANSMSG
*
message
)
{
HWND
target
=
GetFocus
();
if
(
!
target
)
PostMessageW
(
data
->
IMC
.
hWnd
,
msg
,
wParam
,
lParam
);
else
PostMessageW
(
target
,
msg
,
wParam
,
lParam
);
HWND
target
;
if
(
!
(
target
=
GetFocus
())
&&
!
(
target
=
imc
->
IMC
.
hWnd
))
return
;
PostMessageW
(
target
,
message
->
message
,
message
->
wParam
,
message
->
lParam
);
}
static
void
imc_send_message
(
struct
imc
*
imc
,
TRANSMSG
*
message
)
...
...
@@ -3031,7 +3028,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
BYTE
state
[
256
];
UINT
scancode
;
TRANSMSGLIST
*
list
=
NULL
;
UINT
msg_count
;
UINT
msg_count
,
i
;
UINT
uVirtKey
;
static
const
DWORD
list_count
=
10
;
...
...
@@ -3063,13 +3060,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
msg_count
=
ime
->
pImeToAsciiEx
(
uVirtKey
,
scancode
,
state
,
list
,
0
,
imc
);
TRACE
(
"%i messages generated
\n
"
,
msg_count
);
if
(
msg_count
&&
msg_count
<=
list_count
)
{
UINT
i
;
LPTRANSMSG
msgs
=
list
->
TransMsg
;
for
(
i
=
0
;
i
<
msg_count
;
i
++
)
ImmInternalPostIMEMessage
(
data
,
msgs
[
i
].
message
,
msgs
[
i
].
wParam
,
msgs
[
i
].
lParam
);
}
for
(
i
=
0
;
i
<
msg_count
;
i
++
)
imc_post_message
(
data
,
list
->
TransMsg
+
i
);
else
if
(
msg_count
>
list_count
)
ImmGenerateMessage
(
imc
);
...
...
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