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
eb1c6657
Commit
eb1c6657
authored
Jun 30, 2005
by
Phil Krylov
Committed by
Alexandre Julliard
Jun 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented EM_GETLINECOUNT RichEdit message.
parent
4d11eba0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
editor.c
dlls/riched20/editor.c
+14
-2
editstr.h
dlls/riched20/editstr.h
+1
-0
wrap.c
dlls/riched20/wrap.c
+3
-0
No files found.
dlls/riched20/editor.c
View file @
eb1c6657
...
...
@@ -51,7 +51,7 @@
- EM_GETLANGOPTIONS 2.0
- EM_GETLIMITTEXT
- EM_GETLINE
-
EM_GETLINECOUNT returns number of rows, not of paragraphs
+
EM_GETLINECOUNT returns number of rows, not of paragraphs
+ EM_GETMODIFY
- EM_GETOLEINTERFACE
- EM_GETOPTIONS
...
...
@@ -838,7 +838,6 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
UNSUPPORTED_MSG
(
EM_GETLANGOPTIONS
)
UNSUPPORTED_MSG
(
EM_GETLIMITTEXT
)
UNSUPPORTED_MSG
(
EM_GETLINE
)
UNSUPPORTED_MSG
(
EM_GETLINECOUNT
)
/* UNSUPPORTED_MSG(EM_GETOLEINTERFACE) separate stub */
UNSUPPORTED_MSG
(
EM_GETOPTIONS
)
UNSUPPORTED_MSG
(
EM_GETPASSWORDCHAR
)
...
...
@@ -1235,6 +1234,19 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
}
return
ME_GetTextW
(
editor
,
rng
->
lpstrText
,
rng
->
chrg
.
cpMin
,
rng
->
chrg
.
cpMax
-
rng
->
chrg
.
cpMin
,
FALSE
);
}
case
EM_GETLINECOUNT
:
{
ME_DisplayItem
*
item
=
editor
->
pBuffer
->
pFirst
->
next
;
int
nRows
=
0
;
while
(
item
!=
editor
->
pBuffer
->
pLast
)
{
assert
(
item
->
type
==
diParagraph
);
nRows
+=
item
->
member
.
para
.
nRows
;
item
=
item
->
member
.
para
.
next_para
;
}
return
max
(
1
,
nRows
);
}
case
WM_CREATE
:
ME_CommitUndo
(
editor
);
ME_WrapMarkedParagraphs
(
editor
);
...
...
dlls/riched20/editstr.h
View file @
eb1c6657
...
...
@@ -147,6 +147,7 @@ typedef struct tagME_Paragraph
int
nFlags
;
int
nYPos
,
nHeight
;
int
nLastPaintYPos
,
nLastPaintHeight
;
int
nRows
;
struct
tagME_DisplayItem
*
prev_para
,
*
next_para
,
*
document
;
}
ME_Paragraph
;
...
...
dlls/riched20/wrap.c
View file @
eb1c6657
...
...
@@ -375,12 +375,15 @@ void ME_WrapTextParagraph(ME_Context *c, ME_DisplayItem *tp) {
ME_WrapEndParagraph
(
&
wc
,
p
);
tp
->
member
.
para
.
nFlags
&=
~
MEPF_REWRAP
;
tp
->
member
.
para
.
nHeight
=
wc
.
pt
.
y
;
tp
->
member
.
para
.
nRows
=
wc
.
nRow
+
1
;
}
void
ME_PrepareParagraphForWrapping
(
ME_Context
*
c
,
ME_DisplayItem
*
tp
)
{
ME_DisplayItem
*
p
;
/* remove all items that will be reinserted by paragraph wrapper anyway */
tp
->
member
.
para
.
nRows
=
0
;
for
(
p
=
tp
->
next
;
p
!=
tp
->
member
.
para
.
next_para
;
p
=
p
->
next
)
{
switch
(
p
->
type
)
{
case
diStartRow
:
...
...
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