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
c5ba5e2e
Commit
c5ba5e2e
authored
Jan 24, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jan 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/button: Enable parent dialog tab texture.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b02405d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
button.c
dlls/comctl32/button.c
+8
-0
system.c
dlls/uxtheme/tests/system.c
+2
-2
No files found.
dlls/comctl32/button.c
View file @
c5ba5e2e
...
...
@@ -526,6 +526,9 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
break
;
case
WM_CREATE
:
{
HWND
parent
;
if
(
btn_type
>=
MAX_BTN_TYPE
)
return
-
1
;
/* abort */
...
...
@@ -537,7 +540,12 @@ static LRESULT CALLBACK BUTTON_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, L
}
infoPtr
->
state
=
BST_UNCHECKED
;
OpenThemeData
(
hWnd
,
WC_BUTTONW
);
parent
=
GetParent
(
hWnd
);
if
(
parent
)
EnableThemeDialogTexture
(
parent
,
ETDT_ENABLE
);
return
0
;
}
case
WM_DESTROY
:
theme
=
GetWindowTheme
(
hWnd
);
...
...
dlls/uxtheme/tests/system.c
View file @
c5ba5e2e
...
...
@@ -2097,7 +2097,7 @@ static void test_EnableThemeDialogTexture(void)
child_hdc
=
GetDC
(
child
);
brush
=
(
HBRUSH
)
SendMessageW
(
dialog
,
WM_CTLCOLORSTATIC
,
(
WPARAM
)
child_hdc
,
(
LPARAM
)
child
);
if
(
class_tests
[
i
].
texture_enabled
)
todo_wine
todo_wine
_if
(
!
lstrcmpA
(
class_tests
[
i
].
param
.
class_name
,
WC_STATICA
))
ok
(
brush
!=
GetSysColorBrush
(
COLOR_BTNFACE
),
"Expected tab texture enabled.
\n
"
);
else
ok
(
brush
==
GetSysColorBrush
(
COLOR_BTNFACE
),
"Expected tab texture disabled.
\n
"
);
...
...
@@ -2121,7 +2121,7 @@ static void test_EnableThemeDialogTexture(void)
child_hdc
=
GetDC
(
child
);
brush
=
(
HBRUSH
)
SendMessageW
(
dialog
,
WM_CTLCOLORSTATIC
,
(
WPARAM
)
child_hdc
,
(
LPARAM
)
child
);
if
(
class_tests
[
i
].
texture_enabled
)
todo_wine
todo_wine
_if
(
!
lstrcmpA
(
class_tests
[
i
].
param
.
class_name
,
WC_STATICA
))
ok
(
brush
!=
GetSysColorBrush
(
COLOR_BTNFACE
),
"Expected tab texture enabled.
\n
"
);
else
ok
(
brush
==
GetSysColorBrush
(
COLOR_BTNFACE
),
"Expected tab texture disabled.
\n
"
);
...
...
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