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
c9b65341
Commit
c9b65341
authored
Jan 24, 1999
by
Gerard Patel
Committed by
Alexandre Julliard
Jan 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed EDIT_EM_CharFromPos to return line number.
parent
bb7959b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
edit.c
controls/edit.c
+4
-4
No files found.
controls/edit.c
View file @
c9b65341
...
@@ -1888,8 +1888,9 @@ static INT32 EDIT_WordBreakProc(LPSTR s, INT32 index, INT32 count, INT32 action)
...
@@ -1888,8 +1888,9 @@ static INT32 EDIT_WordBreakProc(LPSTR s, INT32 index, INT32 count, INT32 action)
*
*
* EM_CHARFROMPOS
* EM_CHARFROMPOS
*
*
* FIXME: do the specs mean to return LineIndex or LineNumber ???
* returns line number (not index) in high-order word of result.
* Let's assume LineIndex is meant
* NB : Q137805 is unclear about this. POINT * pointer in lParam apply
* to Richedit, not to the edit control. Original documentation is valid.
* FIXME: do the specs mean to return -1 if outside client area or
* FIXME: do the specs mean to return -1 if outside client area or
* if outside formatting rectangle ???
* if outside formatting rectangle ???
*
*
...
@@ -1907,8 +1908,7 @@ static LRESULT EDIT_EM_CharFromPos(WND *wnd, EDITSTATE *es, INT32 x, INT32 y)
...
@@ -1907,8 +1908,7 @@ static LRESULT EDIT_EM_CharFromPos(WND *wnd, EDITSTATE *es, INT32 x, INT32 y)
return
-
1
;
return
-
1
;
index
=
EDIT_CharFromPos
(
wnd
,
es
,
x
,
y
,
NULL
);
index
=
EDIT_CharFromPos
(
wnd
,
es
,
x
,
y
,
NULL
);
return
MAKELONG
(
index
,
EDIT_EM_LineIndex
(
wnd
,
es
,
return
MAKELONG
(
index
,
EDIT_EM_LineFromChar
(
wnd
,
es
,
index
));
EDIT_EM_LineFromChar
(
wnd
,
es
,
index
)));
}
}
...
...
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