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
d4fc05a9
Commit
d4fc05a9
authored
May 31, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jun 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/test: Add few tests for messages sent from SetForegroundWindow().
parent
79e19b91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
msg.c
dlls/user32/tests/msg.c
+33
-0
No files found.
dlls/user32/tests/msg.c
View file @
d4fc05a9
...
...
@@ -9095,6 +9095,38 @@ static void test_nullCallback(void)
DestroyWindow
(
hwnd
);
}
static
const
struct
message
SetForegroundWindowSeq
[]
=
{
{
WM_NCACTIVATE
,
sent
|
wparam
,
0
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_ACTIVATE
,
sent
|
wparam
,
0
},
{
WM_ACTIVATEAPP
,
sent
|
wparam
,
0
},
{
WM_KILLFOCUS
,
sent
},
{
0
}
};
static
void
test_SetForegroundWindow
(
void
)
{
HWND
hwnd
;
hwnd
=
CreateWindowExA
(
0
,
"TestWindowClass"
,
"Test SetForegroundWindow"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
100
,
100
,
200
,
200
,
0
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
0
,
"Failed to create overlapped window
\n
"
);
flush_sequence
();
trace
(
"SetForegroundWindow( 0 )
\n
"
);
SetForegroundWindow
(
0
);
ok_sequence
(
WmEmptySeq
,
"SetForegroundWindow( 0 ) away from foreground top level window"
,
FALSE
);
trace
(
"SetForegroundWindow( GetDesktopWindow() )
\n
"
);
SetForegroundWindow
(
GetDesktopWindow
()
);
ok_sequence
(
SetForegroundWindowSeq
,
"SetForegroundWindow( desktop ) away from "
"foreground top level window"
,
TRUE
);
trace
(
"done
\n
"
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
msg
)
{
BOOL
ret
;
...
...
@@ -9166,6 +9198,7 @@ START_TEST(msg)
test_sys_menu
();
test_dialog_messages
();
test_nullCallback
();
test_SetForegroundWindow
();
UnhookWindowsHookEx
(
hCBT_hook
);
if
(
pUnhookWinEvent
)
...
...
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