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
652af4e2
Commit
652af4e2
authored
May 07, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
May 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Implement IMR_QUERYCHARPOSITION handling in the edit control.
parent
b98ef8f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
edit.c
dlls/user32/edit.c
+19
-0
imm.h
include/imm.h
+9
-0
No files found.
dlls/user32/edit.c
View file @
652af4e2
...
...
@@ -5169,6 +5169,25 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
case
WM_IME_CONTROL
:
break
;
case
WM_IME_REQUEST
:
switch
(
wParam
)
{
case
IMR_QUERYCHARPOSITION
:
{
LRESULT
pos
;
IMECHARPOSITION
*
chpos
=
(
IMECHARPOSITION
*
)
lParam
;
pos
=
EDIT_EM_PosFromChar
(
es
,
es
->
selection_start
+
chpos
->
dwCharPos
,
FALSE
);
chpos
->
pt
.
x
=
LOWORD
(
pos
);
chpos
->
pt
.
y
=
HIWORD
(
pos
);
chpos
->
cLineHeight
=
es
->
line_height
;
chpos
->
rcDocument
=
es
->
format_rect
;
result
=
1
;
break
;
}
}
break
;
default:
result
=
DefWindowProcT
(
hwnd
,
msg
,
wParam
,
lParam
,
unicode
);
break
;
...
...
include/imm.h
View file @
652af4e2
...
...
@@ -129,6 +129,15 @@ typedef struct _tagCOMPOSITIONFORM
typedef
BOOL
(
CALLBACK
*
IMCENUMPROC
)(
HIMC
,
LPARAM
);
typedef
struct
_tagIMECHARPOSITION
{
DWORD
dwSize
;
DWORD
dwCharPos
;
POINT
pt
;
UINT
cLineHeight
;
RECT
rcDocument
;
}
IMECHARPOSITION
,
*
LPIMECHARPOSITION
;
/* wParam for WM_IME_CONTROL */
#define IMC_GETCANDIDATEPOS 0x0007
#define IMC_SETCANDIDATEPOS 0x0008
...
...
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