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
538a9037
Commit
538a9037
authored
Mar 24, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Mar 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme/tests: Test WM_ERASEBKGND return value from custom dialog procedures.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1c5e5ded
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
system.c
dlls/uxtheme/tests/system.c
+17
-0
No files found.
dlls/uxtheme/tests/system.c
View file @
538a9037
...
...
@@ -1614,6 +1614,7 @@ static const struct message empty_seq[] =
static
HWND
dialog_child
;
static
DWORD
dialog_init_flag
;
static
BOOL
handle_WM_ERASEBKGND
;
static
BOOL
handle_WM_CTLCOLORSTATIC
;
static
INT_PTR
CALLBACK
test_EnableThemeDialogTexture_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
...
...
@@ -1639,6 +1640,15 @@ static INT_PTR CALLBACK test_EnableThemeDialogTexture_proc(HWND hwnd, UINT msg,
EnableThemeDialogTexture
(
hwnd
,
dialog_init_flag
);
return
TRUE
;
case
WM_ERASEBKGND
:
{
if
(
!
handle_WM_ERASEBKGND
)
return
FALSE
;
SetWindowLongPtrW
(
hwnd
,
DWLP_MSGRESULT
,
0
);
return
TRUE
;
}
case
WM_CTLCOLORSTATIC
:
return
(
INT_PTR
)(
handle_WM_CTLCOLORSTATIC
?
GetSysColorBrush
(
COLOR_MENU
)
:
0
);
...
...
@@ -1876,6 +1886,13 @@ static void test_EnableThemeDialogTexture(void)
GetSysColorBrush
(
COLOR_MENU
),
brush
);
handle_WM_CTLCOLORSTATIC
=
FALSE
;
/* Test that the dialog procedure should take precedence over DefDlgProc() for WM_ERASEBKGND */
handle_WM_ERASEBKGND
=
TRUE
;
lr
=
SendMessageW
(
dialog
,
WM_ERASEBKGND
,
(
WPARAM
)
child_hdc
,
0
);
todo_wine
ok
(
lr
==
0
,
"Expected 0, got %#lx.
\n
"
,
lr
);
handle_WM_ERASEBKGND
=
FALSE
;
/* Test that dialog doesn't have theme handle opened for itself */
ok
(
GetWindowTheme
(
dialog
)
==
NULL
,
"Expected NULL theme handle.
\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