Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a0edd25e
Commit
a0edd25e
authored
Jul 21, 2005
by
Phil Krylov
Committed by
Alexandre Julliard
Jul 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented EM_LINELENGTH RichEdit message.
parent
8ae2690b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
editor.c
dlls/riched20/editor.c
+29
-2
No files found.
dlls/riched20/editor.c
View file @
a0edd25e
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
- EM_LIMITTEXT
- EM_LIMITTEXT
+ EM_LINEFROMCHAR
+ EM_LINEFROMCHAR
+ EM_LINEINDEX
+ EM_LINEINDEX
-
EM_LINELENGTH
+
EM_LINELENGTH
+ EM_LINESCROLL
+ EM_LINESCROLL
- EM_PASTESPECIAL
- EM_PASTESPECIAL
- EM_POSFROMCHARS
- EM_POSFROMCHARS
...
@@ -915,7 +915,6 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
...
@@ -915,7 +915,6 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
UNSUPPORTED_MSG
(
EM_GETZOOM
)
UNSUPPORTED_MSG
(
EM_GETZOOM
)
UNSUPPORTED_MSG
(
EM_HIDESELECTION
)
UNSUPPORTED_MSG
(
EM_HIDESELECTION
)
UNSUPPORTED_MSG
(
EM_LIMITTEXT
)
/* also known as EM_SETLIMITTEXT */
UNSUPPORTED_MSG
(
EM_LIMITTEXT
)
/* also known as EM_SETLIMITTEXT */
UNSUPPORTED_MSG
(
EM_LINELENGTH
)
UNSUPPORTED_MSG
(
EM_PASTESPECIAL
)
UNSUPPORTED_MSG
(
EM_PASTESPECIAL
)
/* UNSUPPORTED_MSG(EM_POSFROMCHARS) missing in Wine headers */
/* UNSUPPORTED_MSG(EM_POSFROMCHARS) missing in Wine headers */
UNSUPPORTED_MSG
(
EM_REQUESTRESIZE
)
UNSUPPORTED_MSG
(
EM_REQUESTRESIZE
)
...
@@ -1368,6 +1367,34 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
...
@@ -1368,6 +1367,34 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
item
=
ME_FindItemFwd
(
item
,
diRun
);
item
=
ME_FindItemFwd
(
item
,
diRun
);
return
para
->
member
.
para
.
nCharOfs
+
item
->
member
.
run
.
nCharOfs
;
return
para
->
member
.
para
.
nCharOfs
+
item
->
member
.
run
.
nCharOfs
;
}
}
case
EM_LINELENGTH
:
{
ME_DisplayItem
*
item
,
*
item_end
;
int
nChars
=
0
;
if
(
wParam
>
ME_GetTextLength
(
editor
))
return
0
;
if
(
wParam
==
-
1
)
{
FIXME
(
"EM_LINELENGTH: returning number of unselected characters on lines with selection unsupported.
\n
"
);
return
0
;
}
item
=
ME_FindItemAtOffset
(
editor
,
diRun
,
wParam
,
NULL
);
item
=
ME_RowStart
(
item
);
item_end
=
ME_RowEnd
(
item
);
if
(
!
item_end
)
{
/* Empty buffer, no runs */
nChars
=
0
;
}
else
{
nChars
=
ME_CharOfsFromRunOfs
(
editor
,
item_end
,
ME_StrLen
(
item_end
->
member
.
run
.
strText
));
nChars
-=
ME_CharOfsFromRunOfs
(
editor
,
item
,
0
);
}
TRACE
(
"EM_LINELENGTH(%d)==%d
\n
"
,
wParam
,
nChars
);
return
nChars
;
}
case
EM_FINDTEXT
:
case
EM_FINDTEXT
:
{
{
FINDTEXTA
*
ft
=
(
FINDTEXTA
*
)
lParam
;
FINDTEXTA
*
ft
=
(
FINDTEXTA
*
)
lParam
;
...
...
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