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
520ab5c2
Commit
520ab5c2
authored
Aug 04, 2008
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Clear richedit area before setting text.
parent
52081393
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
winhelp.c
programs/winhlp32/winhelp.c
+3
-4
No files found.
programs/winhlp32/winhelp.c
View file @
520ab5c2
...
...
@@ -5,6 +5,7 @@
* 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
* 2002, 2008 Eric Pouech <eric.pouech@wanadoo.fr>
* 2004 Ken Belleau <jamez@ivic.qc.ca>
* 2008 Kirill K. Smirnov <lich@math.spbu.ru>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -1101,6 +1102,8 @@ static DWORD CALLBACK WINHELP_RtfStreamIn(DWORD_PTR cookie, BYTE* buff,
static
void
WINHELP_SetupText
(
HWND
hTextWnd
,
WINHELP_WINDOW
*
win
,
ULONG
relative
)
{
/* At first clear area - needed by EM_POSFROMCHAR/EM_SETSCROLLPOS */
SendMessage
(
hTextWnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
""
);
SendMessage
(
hTextWnd
,
WM_SETREDRAW
,
FALSE
,
0
);
SendMessage
(
hTextWnd
,
EM_SETBKGNDCOLOR
,
0
,
(
LPARAM
)
win
->
info
->
sr_color
);
/* set word-wrap to window size (undocumented) */
...
...
@@ -1130,10 +1133,6 @@ static void WINHELP_SetupText(HWND hTextWnd, WINHELP_WINDOW* win, ULONG relative
pt
.
x
=
0
;
pt
.
y
=
ptl
.
y
;
SendMessage
(
hTextWnd
,
EM_SETSCROLLPOS
,
0
,
(
LPARAM
)
&
pt
);
}
else
{
SendMessage
(
hTextWnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
""
);
}
SendMessage
(
hTextWnd
,
WM_SETREDRAW
,
TRUE
,
0
);
InvalidateRect
(
hTextWnd
,
NULL
,
TRUE
);
}
...
...
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