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
372e3e22
Commit
372e3e22
authored
Feb 13, 2017
by
Fabian Maurer
Committed by
Alexandre Julliard
Feb 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add tests for windows when first shown if they have children.
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ea6dbfcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
msg.c
dlls/user32/tests/msg.c
+43
-0
No files found.
dlls/user32/tests/msg.c
View file @
372e3e22
...
...
@@ -1120,6 +1120,17 @@ static const struct message WmFirstDrawSetWindowPosSeq5[] = {
{
WM_WINDOWPOSCHANGED
,
sent
},
{
0
}
};
static
const
struct
message
WmFirstDrawChildSeq1
[]
=
{
{
0
}
};
static
const
struct
message
WmFirstDrawChildSeq2
[]
=
{
{
WM_NCPAINT
,
sent
|
wparam
,
1
},
{
WM_ERASEBKGND
,
sent
},
/* ocasionally received on test machines */
{
WM_NCPAINT
,
sent
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
0
}
};
/* CreateWindow (for child window, not initially visible) */
static
const
struct
message
WmCreateChildSeq
[]
=
{
{
HCBT_CREATEWND
,
hook
},
...
...
@@ -5107,6 +5118,38 @@ static void test_messages(void)
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOSIZE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOZORDER
,
FALSE
);
/* Test SetWindowPos with child windows */
flush_events
();
hparent
=
CreateWindowExA
(
0
,
"TestParentClass"
,
"Test parent"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
100
,
100
,
200
,
200
,
0
,
0
,
0
,
NULL
);
ok
(
hparent
!=
0
,
"Failed to create parent window
\n
"
);
hchild
=
CreateWindowExA
(
0
,
"TestWindowClass"
,
"Test child"
,
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
10
,
10
,
hparent
,
0
,
0
,
NULL
);
ok
(
hchild
!=
0
,
"Failed to create child window
\n
"
);
flush_sequence
();
SetWindowPos
(
hparent
,
NULL
,
0
,
0
,
100
,
100
,
SWP_SHOWWINDOW
);
ok_sequence
(
WmFirstDrawChildSeq1
,
/* Expect no messages for the child */
"SetWindowPos:show_popup_first_show_window_child1"
,
FALSE
);
DestroyWindow
(
hchild
);
DestroyWindow
(
hparent
);
flush_events
();
hparent
=
CreateWindowExA
(
0
,
"TestParentClass"
,
"Test parent"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
|
WS_CLIPCHILDREN
,
100
,
100
,
200
,
200
,
0
,
0
,
0
,
NULL
);
ok
(
hparent
!=
0
,
"Failed to create parent window
\n
"
);
hchild
=
CreateWindowExA
(
0
,
"TestWindowClass"
,
"Test child"
,
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
10
,
10
,
hparent
,
0
,
0
,
NULL
);
ok
(
hchild
!=
0
,
"Failed to create child window
\n
"
);
flush_sequence
();
SetWindowPos
(
hparent
,
NULL
,
0
,
0
,
100
,
100
,
SWP_SHOWWINDOW
);
ok_sequence
(
WmFirstDrawChildSeq2
,
/* Expect child to be redrawn */
"SetWindowPos:show_popup_first_show_window_child2"
,
TRUE
);
DestroyWindow
(
hchild
);
DestroyWindow
(
hparent
);
/* Test child windows */
hparent
=
CreateWindowExA
(
0
,
"TestParentClass"
,
"Test parent"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
...
...
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