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
a4ff5c55
Commit
a4ff5c55
authored
Feb 12, 2007
by
Ivan Sinitsin
Committed by
Alexandre Julliard
Feb 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Set the right background color of the dialog window "Choose color".
parent
a00af0d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
colordlg.c
dlls/comdlg32/colordlg.c
+10
-3
No files found.
dlls/comdlg32/colordlg.c
View file @
a4ff5c55
...
...
@@ -463,6 +463,7 @@ void CC_PaintTriangle( HWND hDlg, int y)
int
height
;
int
oben
;
RECT
rect
;
HBRUSH
hbr
;
HWND
hwnd
=
GetDlgItem
(
hDlg
,
0x2be
);
LCCPRIV
lpp
=
(
LCCPRIV
)
GetPropW
(
hDlg
,
szColourDialogProp
);
...
...
@@ -483,7 +484,9 @@ void CC_PaintTriangle( HWND hDlg, int y)
points
[
2
].
y
=
points
[
0
].
y
-
w
;
points
[
2
].
x
=
points
[
1
].
x
=
points
[
0
].
x
+
w
;
FillRect
(
hDC
,
&
lpp
->
old3angle
,
(
HBRUSH
)
GetClassLongPtrW
(
hwnd
,
GCLP_HBRBACKGROUND
));
hbr
=
(
HBRUSH
)
GetClassLongPtrW
(
hwnd
,
GCLP_HBRBACKGROUND
);
if
(
!
hbr
)
hbr
=
GetSysColorBrush
(
COLOR_BTNFACE
);
FillRect
(
hDC
,
&
lpp
->
old3angle
,
hbr
);
lpp
->
old3angle
.
left
=
points
[
0
].
x
;
lpp
->
old3angle
.
right
=
points
[
1
].
x
+
1
;
lpp
->
old3angle
.
top
=
points
[
2
].
y
-
1
;
...
...
@@ -740,7 +743,9 @@ static void CC_PaintPredefColorArray( HWND hDlg, int rows, int cols)
hdc
=
GetDC
(
hwnd
);
GetClientRect
(
hwnd
,
&
rect
);
FillRect
(
hdc
,
&
rect
,
(
HBRUSH
)
GetClassLongPtrW
(
hwnd
,
GCLP_HBRBACKGROUND
));
hBrush
=
(
HBRUSH
)
GetClassLongPtrW
(
hwnd
,
GCLP_HBRBACKGROUND
);
if
(
!
hBrush
)
hBrush
=
GetSysColorBrush
(
COLOR_BTNFACE
);
FillRect
(
hdc
,
&
rect
,
hBrush
);
for
(
j
=
0
;
j
<
rows
;
j
++
)
{
for
(
i
=
0
;
i
<
cols
;
i
++
)
...
...
@@ -784,7 +789,9 @@ void CC_PaintUserColorArray( HWND hDlg, int rows, int cols, COLORREF* lpcr )
hdc
=
GetDC
(
hwnd
);
if
(
hdc
)
{
FillRect
(
hdc
,
&
rect
,
(
HBRUSH
)
GetClassLongPtrW
(
hwnd
,
GCLP_HBRBACKGROUND
)
);
hBrush
=
(
HBRUSH
)
GetClassLongPtrW
(
hwnd
,
GCLP_HBRBACKGROUND
);
if
(
!
hBrush
)
hBrush
=
GetSysColorBrush
(
COLOR_BTNFACE
);
FillRect
(
hdc
,
&
rect
,
hBrush
);
for
(
j
=
0
;
j
<
rows
;
j
++
)
{
for
(
i
=
0
;
i
<
cols
;
i
++
)
...
...
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