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
4d00b282
Commit
4d00b282
authored
Oct 13, 2006
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Oct 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Use color specified in .hlp file for background, not just WHITE_BRUSH.
parent
7affdd4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
winhelp.c
programs/winhelp/winhelp.c
+7
-0
winhelp.h
programs/winhelp/winhelp.h
+2
-0
No files found.
programs/winhelp/winhelp.c
View file @
4d00b282
...
...
@@ -272,6 +272,7 @@ static BOOL WINHELP_RegisterWinClasses(void)
class_text
=
class_main
;
class_text
.
lpfnWndProc
=
WINHELP_TextWndProc
;
class_text
.
hbrBackground
=
0
;
class_text
.
lpszClassName
=
TEXT_WIN_CLASS_NAME
;
class_shadow
=
class_main
;
...
...
@@ -395,6 +396,7 @@ static BOOL WINHELP_ReuseWindow(WINHELP_WINDOW* win, WINHELP_WINDOW* oldwin,
win
->
hTextWnd
=
oldwin
->
hTextWnd
;
win
->
hHistoryWnd
=
oldwin
->
hHistoryWnd
;
oldwin
->
hMainWnd
=
oldwin
->
hButtonBoxWnd
=
oldwin
->
hTextWnd
=
oldwin
->
hHistoryWnd
=
0
;
win
->
hBrush
=
oldwin
->
hBrush
;
SetWindowLong
(
win
->
hMainWnd
,
0
,
(
LONG
)
win
);
SetWindowLong
(
win
->
hButtonBoxWnd
,
0
,
(
LONG
)
win
);
...
...
@@ -857,6 +859,7 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
win
=
(
WINHELP_WINDOW
*
)
((
LPCREATESTRUCT
)
lParam
)
->
lpCreateParams
;
SetWindowLong
(
hWnd
,
0
,
(
LONG
)
win
);
win
->
hTextWnd
=
hWnd
;
win
->
hBrush
=
CreateSolidBrush
(
win
->
info
->
sr_color
);
if
(
win
->
info
->
win_style
&
WS_POPUP
)
Globals
.
hPopupWnd
=
win
->
hMainWnd
=
hWnd
;
WINHELP_InitFonts
(
hWnd
);
break
;
...
...
@@ -989,6 +992,8 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
win
=
(
WINHELP_WINDOW
*
)
GetWindowLong
(
hWnd
,
0
);
scroll_pos
=
GetScrollPos
(
hWnd
,
SB_VERT
);
/* No DPtoLP needed - MM_TEXT map mode */
if
(
ps
.
fErase
)
FillRect
(
hDc
,
&
ps
.
rcPaint
,
win
->
hBrush
);
for
(
line
=
win
->
first_line
;
line
;
line
=
line
->
next
)
{
for
(
part
=
&
line
->
first_part
;
part
;
part
=
part
->
next
)
...
...
@@ -998,6 +1003,7 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
case
hlp_line_part_text
:
SelectObject
(
hDc
,
part
->
u
.
text
.
hFont
);
SetTextColor
(
hDc
,
part
->
u
.
text
.
color
);
SetBkColor
(
hDc
,
win
->
info
->
sr_color
);
TextOut
(
hDc
,
part
->
rect
.
left
,
part
->
rect
.
top
-
scroll_pos
,
part
->
u
.
text
.
lpsText
,
part
->
u
.
text
.
wTextLen
);
if
(
part
->
u
.
text
.
wUnderline
)
...
...
@@ -1122,6 +1128,7 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
if
(
hWnd
==
Globals
.
hPopupWnd
)
Globals
.
hPopupWnd
=
0
;
bExit
=
(
Globals
.
wVersion
>=
4
&&
!
lstrcmpi
(
win
->
lpszName
,
"main"
));
DeleteObject
(
win
->
hBrush
);
WINHELP_DeleteWindow
(
win
);
...
...
programs/winhelp/winhelp.h
View file @
4d00b282
...
...
@@ -111,6 +111,8 @@ typedef struct tagWinHelp
HCURSOR
hArrowCur
;
HCURSOR
hHandCur
;
HBRUSH
hBrush
;
HLPFILE_WINDOWINFO
*
info
;
/* FIXME: for now it's a fixed size */
...
...
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