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
8806b1e8
Commit
8806b1e8
authored
May 18, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/ipaddress: Use cached colors instead of GetSysColor for IPAddress control.
parent
bdd4e0b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
ipaddress.c
dlls/comctl32/ipaddress.c
+10
-6
No files found.
dlls/comctl32/ipaddress.c
View file @
8806b1e8
...
...
@@ -158,18 +158,18 @@ static LRESULT IPADDRESS_Draw (const IPADDRESS_INFO *infoPtr, HDC hdc)
GetClientRect
(
infoPtr
->
Self
,
&
rect
);
if
(
infoPtr
->
Enabled
)
{
bgCol
=
COLOR_WINDOW
;
fgCol
=
COLOR_WINDOWTEXT
;
bgCol
=
comctl32_color
.
clrWindow
;
fgCol
=
comctl32_color
.
clrWindowText
;
}
else
{
bgCol
=
COLOR_3DFACE
;
fgCol
=
COLOR_GRAYTEXT
;
bgCol
=
comctl32_color
.
clr3dFace
;
fgCol
=
comctl32_color
.
clrGrayText
;
}
FillRect
(
hdc
,
&
rect
,
(
HBRUSH
)(
DWORD_PTR
)(
bgCol
+
1
));
DrawEdge
(
hdc
,
&
rect
,
EDGE_SUNKEN
,
BF_RECT
|
BF_ADJUST
);
SetBkColor
(
hdc
,
GetSysColor
(
bgCol
)
);
SetTextColor
(
hdc
,
GetSysColor
(
fgCol
)
);
SetBkColor
(
hdc
,
bgCol
);
SetTextColor
(
hdc
,
fgCol
);
for
(
i
=
0
;
i
<
3
;
i
++
)
{
GetWindowRect
(
infoPtr
->
Part
[
i
].
EditHwnd
,
&
rcPart
);
...
...
@@ -595,6 +595,10 @@ IPADDRESS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
break
;
case
WM_SYSCOLORCHANGE
:
COMCTL32_RefreshSysColors
();
return
0
;
case
IPM_CLEARADDRESS
:
IPADDRESS_ClearAddress
(
infoPtr
);
break
;
...
...
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