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
2d133baa
Commit
2d133baa
authored
Feb 22, 2005
by
Stefan Leichter
Committed by
Alexandre Julliard
Feb 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make user32_crosstest.exe loadable on NT 3.51.
parent
fa5c9826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
msg.c
dlls/user/tests/msg.c
+23
-7
No files found.
dlls/user/tests/msg.c
View file @
2d133baa
...
...
@@ -46,6 +46,8 @@
static
BOOL
test_DestroyWindow_flag
;
static
HWINEVENTHOOK
hEvent_hook
;
static
HWND
(
WINAPI
*
pGetAncestor
)(
HWND
,
UINT
);
/*
FIXME: add tests for these
Window Edge Styles (Win31/Win95/98 look), in order of precedence:
...
...
@@ -4342,7 +4344,8 @@ static LRESULT WINAPI MsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam, LPAR
ok
(
!
GetWindow
(
hwnd
,
GW_CHILD
),
"children should be unlinked at this point
\n
"
);
/* fall through */
case
WM_DESTROY
:
ok
(
GetAncestor
(
hwnd
,
GA_PARENT
)
!=
0
,
"parent should NOT be unlinked at this point
\n
"
);
if
(
pGetAncestor
)
ok
(
pGetAncestor
(
hwnd
,
GA_PARENT
)
!=
0
,
"parent should NOT be unlinked at this point
\n
"
);
if
(
test_DestroyWindow_flag
)
{
DWORD
style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
...
...
@@ -5430,8 +5433,10 @@ static void test_DestroyWindow(void)
/* test owner/parent of child2 */
test
=
GetParent
(
child2
);
ok
(
test
==
GetDesktopWindow
(),
"wrong parent %p
\n
"
,
test
);
test
=
GetAncestor
(
child2
,
GA_PARENT
);
if
(
pGetAncestor
)
{
test
=
pGetAncestor
(
child2
,
GA_PARENT
);
ok
(
test
==
GetDesktopWindow
(),
"wrong parent %p
\n
"
,
test
);
}
test
=
GetWindow
(
child2
,
GW_OWNER
);
ok
(
!
test
,
"wrong owner %p
\n
"
,
test
);
...
...
@@ -5441,40 +5446,50 @@ static void test_DestroyWindow(void)
/* test owner/parent of the parent */
test
=
GetParent
(
parent
);
ok
(
!
test
,
"wrong parent %p
\n
"
,
test
);
test
=
GetAncestor
(
parent
,
GA_PARENT
);
if
(
pGetAncestor
)
{
test
=
pGetAncestor
(
parent
,
GA_PARENT
);
ok
(
test
==
GetDesktopWindow
(),
"wrong parent %p
\n
"
,
test
);
}
test
=
GetWindow
(
parent
,
GW_OWNER
);
ok
(
!
test
,
"wrong owner %p
\n
"
,
test
);
/* test owner/parent of child1 */
test
=
GetParent
(
child1
);
ok
(
test
==
parent
,
"wrong parent %p
\n
"
,
test
);
test
=
GetAncestor
(
child1
,
GA_PARENT
);
if
(
pGetAncestor
)
{
test
=
pGetAncestor
(
child1
,
GA_PARENT
);
ok
(
test
==
parent
,
"wrong parent %p
\n
"
,
test
);
}
test
=
GetWindow
(
child1
,
GW_OWNER
);
ok
(
!
test
,
"wrong owner %p
\n
"
,
test
);
/* test owner/parent of child2 */
test
=
GetParent
(
child2
);
ok
(
test
==
parent
,
"wrong parent %p
\n
"
,
test
);
test
=
GetAncestor
(
child2
,
GA_PARENT
);
if
(
pGetAncestor
)
{
test
=
pGetAncestor
(
child2
,
GA_PARENT
);
ok
(
test
==
parent
,
"wrong parent %p
\n
"
,
test
);
}
test
=
GetWindow
(
child2
,
GW_OWNER
);
ok
(
!
test
,
"wrong owner %p
\n
"
,
test
);
/* test owner/parent of child3 */
test
=
GetParent
(
child3
);
ok
(
test
==
child1
,
"wrong parent %p
\n
"
,
test
);
test
=
GetAncestor
(
child3
,
GA_PARENT
);
if
(
pGetAncestor
)
{
test
=
pGetAncestor
(
child3
,
GA_PARENT
);
ok
(
test
==
child1
,
"wrong parent %p
\n
"
,
test
);
}
test
=
GetWindow
(
child3
,
GW_OWNER
);
ok
(
!
test
,
"wrong owner %p
\n
"
,
test
);
/* test owner/parent of child4 */
test
=
GetParent
(
child4
);
ok
(
test
==
parent
,
"wrong parent %p
\n
"
,
test
);
test
=
GetAncestor
(
child4
,
GA_PARENT
);
if
(
pGetAncestor
)
{
test
=
pGetAncestor
(
child4
,
GA_PARENT
);
ok
(
test
==
GetDesktopWindow
(),
"wrong parent %p
\n
"
,
test
);
}
test
=
GetWindow
(
child4
,
GW_OWNER
);
ok
(
test
==
parent
,
"wrong owner %p
\n
"
,
test
);
...
...
@@ -5575,6 +5590,7 @@ START_TEST(msg)
FARPROC
pSetWinEventHook
=
GetProcAddress
(
user32
,
"SetWinEventHook"
);
FARPROC
pUnhookWinEvent
=
GetProcAddress
(
user32
,
"UnhookWinEvent"
);
FARPROC
pIsWinEventHookInstalled
=
0
;
/*GetProcAddress(user32, "IsWinEventHookInstalled");*/
pGetAncestor
=
(
void
*
)
GetProcAddress
(
user32
,
"GetAncestor"
);
if
(
!
RegisterWindowClasses
())
assert
(
0
);
...
...
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