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
c7b1b4c6
Commit
c7b1b4c6
authored
Aug 09, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: WM_IME_CHAR should result in posted, not sent, WM_CHAR messages.
parent
2ce799c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
defwnd.c
dlls/user32/defwnd.c
+6
-11
No files found.
dlls/user32/defwnd.c
View file @
c7b1b4c6
...
...
@@ -812,20 +812,15 @@ LRESULT WINAPI DefWindowProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
result
=
1
;
/* success. FIXME: check text length */
break
;
/* for far east users (IMM32) - <hidenori@a2.ctktv.ne.jp> */
case
WM_IME_CHAR
:
{
CHAR
chChar1
=
(
CHAR
)(
(
wParam
>>
8
)
&
0xff
);
CHAR
chChar2
=
(
CHAR
)(
wParam
&
0xff
);
if
(
chChar1
)
SendMessageA
(
hwnd
,
WM_CHAR
,
(
WPARAM
)
chChar1
,
lParam
);
SendMessageA
(
hwnd
,
WM_CHAR
,
(
WPARAM
)
chChar2
,
lParam
);
}
if
(
HIBYTE
(
wParam
))
PostMessageA
(
hwnd
,
WM_CHAR
,
HIBYTE
(
wParam
),
lParam
);
PostMessageA
(
hwnd
,
WM_CHAR
,
LOBYTE
(
wParam
),
lParam
);
break
;
case
WM_IME_KEYDOWN
:
result
=
SendMessageA
(
hwnd
,
WM_KEYDOWN
,
wParam
,
lParam
);
break
;
case
WM_IME_KEYUP
:
result
=
SendMessageA
(
hwnd
,
WM_KEYUP
,
wParam
,
lParam
);
break
;
...
...
@@ -968,10 +963,10 @@ LRESULT WINAPI DefWindowProcW(
result
=
1
;
/* success. FIXME: check text length */
break
;
/* for far east users (IMM32) - <hidenori@a2.ctktv.ne.jp> */
case
WM_IME_CHAR
:
Send
MessageW
(
hwnd
,
WM_CHAR
,
wParam
,
lParam
);
Post
MessageW
(
hwnd
,
WM_CHAR
,
wParam
,
lParam
);
break
;
case
WM_IME_SETCONTEXT
:
{
HWND
hwndIME
;
...
...
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