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
649e4640
Commit
649e4640
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/comboex: Use cached colors for ComboEx.
parent
1f43da01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
comboex.c
dlls/comctl32/comboex.c
+10
-6
No files found.
dlls/comctl32/comboex.c
View file @
649e4640
...
...
@@ -1535,11 +1535,11 @@ static LRESULT COMBOEX_DrawItem (COMBOEX_INFO *infoPtr, DRAWITEMSTRUCT const *di
/* now draw the text */
if
(
!
IsWindowVisible
(
infoPtr
->
hwndEdit
))
{
nbkc
=
GetSysColor
(
(
dis
->
itemState
&
ODS_SELECTED
)
?
COLOR_HIGHLIGHT
:
COLOR_WINDOW
)
;
nbkc
=
(
dis
->
itemState
&
ODS_SELECTED
)
?
comctl32_color
.
clrHighlight
:
comctl32_color
.
clrWindow
;
bkc
=
SetBkColor
(
dis
->
hDC
,
nbkc
);
ntxc
=
GetSysColor
(
(
dis
->
itemState
&
ODS_SELECTED
)
?
COLOR_HIGHLIGHTTEXT
:
COLOR_WINDOWTEXT
)
;
ntxc
=
(
dis
->
itemState
&
ODS_SELECTED
)
?
comctl32_color
.
clrHighlightText
:
comctl32_color
.
clrWindowText
;
txc
=
SetTextColor
(
dis
->
hDC
,
ntxc
);
x
=
xbase
+
xioff
;
y
=
dis
->
rcItem
.
top
+
...
...
@@ -1750,7 +1750,7 @@ COMBOEX_EditWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
* The following was determined by traces of the native
*/
hDC
=
(
HDC
)
wParam
;
obkc
=
SetBkColor
(
hDC
,
GetSysColor
(
COLOR_WINDOW
)
);
obkc
=
SetBkColor
(
hDC
,
comctl32_color
.
clrWindow
);
GetClientRect
(
hwnd
,
&
rect
);
TRACE
(
"erasing (%s)
\n
"
,
wine_dbgstr_rect
(
&
rect
));
ExtTextOutW
(
hDC
,
0
,
0
,
ETO_OPAQUE
,
&
rect
,
0
,
0
,
0
);
...
...
@@ -1953,7 +1953,7 @@ COMBOEX_ComboWndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
* The following was determined by traces of the native
*/
hDC
=
(
HDC
)
wParam
;
obkc
=
SetBkColor
(
hDC
,
GetSysColor
(
COLOR_WINDOW
)
);
obkc
=
SetBkColor
(
hDC
,
comctl32_color
.
clrWindow
);
GetClientRect
(
hwnd
,
&
rect
);
TRACE
(
"erasing (%s)
\n
"
,
wine_dbgstr_rect
(
&
rect
));
ExtTextOutW
(
hDC
,
0
,
0
,
ETO_OPAQUE
,
&
rect
,
0
,
0
,
0
);
...
...
@@ -2320,6 +2320,10 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetFocus
(
infoPtr
->
hwndCombo
);
return
0
;
case
WM_SYSCOLORCHANGE
:
COMCTL32_RefreshSysColors
();
return
0
;
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
))
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
...
...
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