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
6346250e
Commit
6346250e
authored
Jul 12, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Pick nicer fonts for buttons.
parent
b04ae273
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
winhelp.c
programs/winhlp32/winhelp.c
+13
-2
winhelp.h
programs/winhlp32/winhelp.h
+1
-0
No files found.
programs/winhlp32/winhelp.c
View file @
6346250e
...
...
@@ -58,7 +58,7 @@ static void WINHELP_DeleteButtons(WINHELP_WINDOW*);
static
void
WINHELP_SetupText
(
HWND
hWnd
,
WINHELP_WINDOW
*
win
,
ULONG
relative
);
static
void
WINHELP_DeletePageLinks
(
HLPFILE_PAGE
*
page
);
WINHELP_GLOBALS
Globals
=
{
3
,
NULL
,
TRUE
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
{{{
NULL
,
NULL
}},
0
}};
WINHELP_GLOBALS
Globals
=
{
3
,
NULL
,
TRUE
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
{{{
NULL
,
NULL
}},
0
}
,
NULL
};
#define CTL_ID_BUTTON 0x700
#define CTL_ID_TEXT 0x701
...
...
@@ -1169,10 +1169,21 @@ static LRESULT CALLBACK WINHELP_ButtonBoxWndProc(HWND hWnd, UINT msg, WPARAM wPa
0
,
0
,
0
,
0
,
hWnd
,
(
HMENU
)
button
->
wParam
,
Globals
.
hInstance
,
0
);
if
(
button
->
hWnd
)
{
if
(
button
->
hWnd
)
{
if
(
Globals
.
button_proc
==
NULL
)
{
NONCLIENTMETRICSW
ncm
;
Globals
.
button_proc
=
(
WNDPROC
)
GetWindowLongPtr
(
button
->
hWnd
,
GWLP_WNDPROC
);
ncm
.
cbSize
=
sizeof
(
NONCLIENTMETRICSW
);
SystemParametersInfoW
(
SPI_GETNONCLIENTMETRICS
,
sizeof
(
NONCLIENTMETRICSW
),
&
ncm
,
0
);
Globals
.
hButtonFont
=
CreateFontIndirectW
(
&
ncm
.
lfMenuFont
);
}
SetWindowLongPtr
(
button
->
hWnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
WINHELP_ButtonWndProc
);
if
(
Globals
.
hButtonFont
)
SendMessage
(
button
->
hWnd
,
WM_SETFONT
,
(
WPARAM
)
Globals
.
hButtonFont
,
TRUE
);
}
}
hDc
=
GetDC
(
button
->
hWnd
);
...
...
programs/winhlp32/winhelp.h
View file @
6346250e
...
...
@@ -137,6 +137,7 @@ typedef struct
WNDPROC
button_proc
;
WINHELP_DLL
*
dlls
;
WINHELP_PAGESET
history
;
HFONT
hButtonFont
;
}
WINHELP_GLOBALS
;
extern
WINHELP_GLOBALS
Globals
;
...
...
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