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
ef53e7a2
Commit
ef53e7a2
authored
Jun 07, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for window state when a window receives WM_ENABLE message.
parent
898f4163
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
msg.c
dlls/user/tests/msg.c
+22
-4
No files found.
dlls/user/tests/msg.c
View file @
ef53e7a2
...
...
@@ -935,11 +935,18 @@ static const struct message WmSetRedrawTrueSeq[] =
{
0
}
};
static
const
struct
message
WmEnableWindowSeq
[]
=
static
const
struct
message
WmEnableWindowSeq
_1
[]
=
{
{
WM_CANCELMODE
,
sent
},
{
WM_CANCELMODE
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_STATECHANGE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ENABLE
,
sent
},
{
WM_ENABLE
,
sent
|
wparam
|
lparam
,
FALSE
,
0
},
{
0
}
};
static
const
struct
message
WmEnableWindowSeq_2
[]
=
{
{
EVENT_OBJECT_STATECHANGE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ENABLE
,
sent
|
wparam
|
lparam
,
TRUE
,
0
},
{
0
}
};
...
...
@@ -3186,7 +3193,10 @@ static void test_messages(void)
flush_sequence
();
EnableWindow
(
hparent
,
FALSE
);
ok_sequence
(
WmEnableWindowSeq
,
"EnableWindow"
,
FALSE
);
ok_sequence
(
WmEnableWindowSeq_1
,
"EnableWindow(FALSE)"
,
FALSE
);
EnableWindow
(
hparent
,
TRUE
);
ok_sequence
(
WmEnableWindowSeq_2
,
"EnableWindow(TRUE)"
,
FALSE
);
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
flush_sequence
();
...
...
@@ -4427,6 +4437,14 @@ static LRESULT WINAPI MsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam, LPAR
switch
(
message
)
{
case
WM_ENABLE
:
{
LONG
style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
ok
((
BOOL
)
wParam
==
!
(
style
&
WS_DISABLED
),
"wrong WS_DISABLED state: %d != %d
\n
"
,
wParam
,
!
(
style
&
WS_DISABLED
));
break
;
}
case
WM_CAPTURECHANGED
:
if
(
test_DestroyWindow_flag
)
{
...
...
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