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
76ef090f
Commit
76ef090f
authored
Nov 27, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/combo: Remove unnecessary argument from button painting helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
22c2ce2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
combo.c
dlls/user32/combo.c
+6
-7
No files found.
dlls/user32/combo.c
View file @
76ef090f
...
...
@@ -574,10 +574,13 @@ static LRESULT COMBO_Create( HWND hwnd, LPHEADCOMBO lphc, HWND hwndParent, LONG
*
* Paint combo button (normal, pressed, and disabled states).
*/
static
void
CBPaintButton
(
LPHEADCOMBO
lphc
,
HDC
hdc
,
RECT
rectButton
)
static
void
CBPaintButton
(
HEADCOMBO
*
lphc
,
HDC
hdc
)
{
UINT
buttonState
=
DFCS_SCROLLCOMBOBOX
;
if
(
IsRectEmpty
(
&
lphc
->
buttonRect
))
return
;
if
(
lphc
->
wState
&
CBF_NOREDRAW
)
return
;
...
...
@@ -588,7 +591,7 @@ static void CBPaintButton( LPHEADCOMBO lphc, HDC hdc, RECT rectButton)
if
(
CB_DISABLED
(
lphc
))
buttonState
|=
DFCS_INACTIVE
;
DrawFrameControl
(
hdc
,
&
rectButton
,
DFC_SCROLL
,
buttonState
);
DrawFrameControl
(
hdc
,
&
lphc
->
buttonRect
,
DFC_SCROLL
,
buttonState
);
}
/***********************************************************************
...
...
@@ -816,11 +819,7 @@ static LRESULT COMBO_Paint(LPHEADCOMBO lphc, HDC hParamDC)
* In non 3.1 look, there is a sunken border on the combobox
*/
CBPaintBorder
(
lphc
->
self
,
lphc
,
hDC
);
if
(
!
IsRectEmpty
(
&
lphc
->
buttonRect
)
)
{
CBPaintButton
(
lphc
,
hDC
,
lphc
->
buttonRect
);
}
CBPaintButton
(
lphc
,
hDC
);
/* paint the edit control padding area */
if
(
CB_GETTYPE
(
lphc
)
!=
CBS_DROPDOWNLIST
)
...
...
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