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
011bad8d
Commit
011bad8d
authored
Jun 23, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jun 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Use the system variable pitch font for ip address controls.
parent
d384c410
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ipaddress.c
dlls/comctl32/ipaddress.c
+9
-0
No files found.
dlls/comctl32/ipaddress.c
View file @
011bad8d
...
...
@@ -170,6 +170,8 @@ static LRESULT IPADDRESS_Create (HWND hwnd, const CREATESTRUCTA *lpCreate)
IPADDRESS_INFO
*
infoPtr
;
RECT
rcClient
,
edit
;
int
i
,
fieldsize
;
HFONT
hFont
,
hSysFont
;
LOGFONTW
logFont
,
logSysFont
;
TRACE
(
"
\n
"
);
...
...
@@ -191,6 +193,12 @@ static LRESULT IPADDRESS_Create (HWND hwnd, const CREATESTRUCTA *lpCreate)
infoPtr
->
Enabled
=
TRUE
;
infoPtr
->
Notify
=
lpCreate
->
hwndParent
;
hSysFont
=
(
HFONT
)
GetStockObject
(
ANSI_VAR_FONT
);
GetObjectW
(
hSysFont
,
sizeof
(
LOGFONTW
),
&
logSysFont
);
SystemParametersInfoW
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
strcpyW
(
logFont
.
lfFaceName
,
logSysFont
.
lfFaceName
);
hFont
=
CreateFontIndirectW
(
&
logFont
);
for
(
i
=
0
;
i
<
4
;
i
++
)
{
IPPART_INFO
*
part
=
&
infoPtr
->
Part
[
i
];
...
...
@@ -203,6 +211,7 @@ static LRESULT IPADDRESS_Create (HWND hwnd, const CREATESTRUCTA *lpCreate)
edit
.
left
,
edit
.
top
,
edit
.
right
-
edit
.
left
,
edit
.
bottom
-
edit
.
top
,
hwnd
,
(
HMENU
)
1
,
(
HINSTANCE
)
GetWindowLongPtrW
(
hwnd
,
GWLP_HINSTANCE
),
NULL
);
SendMessageW
(
part
->
EditHwnd
,
WM_SETFONT
,
(
WPARAM
)
hFont
,
FALSE
);
SetPropW
(
part
->
EditHwnd
,
IP_SUBCLASS_PROP
,
hwnd
);
part
->
OrigProc
=
(
WNDPROC
)
SetWindowLongPtrW
(
part
->
EditHwnd
,
GWLP_WNDPROC
,
...
...
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