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
89ee2b02
Commit
89ee2b02
authored
Aug 12, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Aug 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/edit: Implement EM_GETIMESTATUS.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
parent
6baf1198
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
edit.c
dlls/user32/edit.c
+4
-1
msg.c
dlls/user32/tests/msg.c
+0
-8
No files found.
dlls/user32/edit.c
View file @
89ee2b02
...
...
@@ -21,7 +21,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
* TODO:
* - EM_GETIMESTATUS
* - EN_ALIGN_LTR_EC
* - EN_ALIGN_RTL_EC
* - ES_OEMCONVERT
...
...
@@ -4936,6 +4935,10 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
result
=
1
;
break
;
case
EM_GETIMESTATUS
:
result
=
wParam
==
EMSIS_COMPOSITIONSTRING
?
es
->
ime_status
:
1
;
break
;
/* End of the EM_ messages which were in numerical order; what order
* are these in? vaguely alphabetical?
*/
...
...
dlls/user32/tests/msg.c
View file @
89ee2b02
...
...
@@ -12201,26 +12201,22 @@ static DWORD WINAPI test_edit_ime_messages(void *unused_arg)
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
EIMES_GETCOMPSTRATONCE
);
ok
(
lr
==
1
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_GETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
0
);
todo_wine
ok
(
lr
==
EIMES_GETCOMPSTRATONCE
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
EIMES_CANCELCOMPSTRINFOCUS
);
ok
(
lr
==
1
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_GETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
0
);
todo_wine
ok
(
lr
==
EIMES_CANCELCOMPSTRINFOCUS
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
EIMES_COMPLETECOMPSTRKILLFOCUS
);
ok
(
lr
==
1
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_GETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
0
);
todo_wine
ok
(
lr
==
EIMES_COMPLETECOMPSTRKILLFOCUS
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
EIMES_GETCOMPSTRATONCE
|
EIMES_CANCELCOMPSTRINFOCUS
|
EIMES_COMPLETECOMPSTRKILLFOCUS
);
ok
(
lr
==
1
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_GETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
0
);
todo_wine
ok
(
lr
==
(
EIMES_GETCOMPSTRATONCE
|
EIMES_CANCELCOMPSTRINFOCUS
|
EIMES_COMPLETECOMPSTRKILLFOCUS
),
"Got unexpected lr %#Ix.
\n
"
,
lr
);
...
...
@@ -12231,11 +12227,9 @@ static DWORD WINAPI test_edit_ime_messages(void *unused_arg)
/* Invalid EM_{GET|SET}IMESTATUS status types and flags */
lr
=
SendMessageA
(
hwnd
,
EM_GETIMESTATUS
,
0
,
0
);
todo_wine
ok
(
lr
==
1
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_GETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
+
1
,
0
);
todo_wine
ok
(
lr
==
1
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
0
,
EIMES_GETCOMPSTRATONCE
);
...
...
@@ -12251,7 +12245,6 @@ static DWORD WINAPI test_edit_ime_messages(void *unused_arg)
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
0xFFFFFFFF
);
ok
(
lr
==
1
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_GETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
0
);
todo_wine
ok
(
lr
==
0xFFFF
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
0
);
...
...
@@ -12284,7 +12277,6 @@ static DWORD WINAPI test_edit_ime_messages(void *unused_arg)
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
EIMES_GETCOMPSTRATONCE
);
ok
(
lr
==
1
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
lr
=
SendMessageA
(
hwnd
,
EM_GETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
0
);
todo_wine
ok
(
lr
==
EIMES_GETCOMPSTRATONCE
,
"Got unexpected lr %#Ix.
\n
"
,
lr
);
ret
=
ImmSetCompositionStringA
(
himc
,
SCS_SETSTR
,
"Wine"
,
4
,
NULL
,
0
);
...
...
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