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
92faf7aa
Commit
92faf7aa
authored
Dec 31, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Make more ShowWindow tests pass under Wine.
parent
ebd57713
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
msg.c
dlls/user32/tests/msg.c
+7
-7
winpos.c
dlls/winex11.drv/winpos.c
+1
-2
No files found.
dlls/user32/tests/msg.c
View file @
92faf7aa
...
...
@@ -8547,7 +8547,7 @@ static void test_ShowWindow(void)
}
sw
[]
=
{
/* 1 */
{
SW_SHOWNORMAL
,
FALSE
,
WS_VISIBLE
,
WmShowNormal
,
TRUE
},
/* 2 */
{
SW_SHOWNORMAL
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
TRU
E
},
/* 2 */
{
SW_SHOWNORMAL
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
FALS
E
},
/* 3 */
{
SW_HIDE
,
TRUE
,
0
,
WmHide_1
,
FALSE
},
/* 4 */
{
SW_HIDE
,
FALSE
,
0
,
WmEmptySeq
,
FALSE
},
/* 5 */
{
SW_SHOWMINIMIZED
,
FALSE
,
WS_VISIBLE
|
WS_MINIMIZE
,
WmShowMinimized_1
,
FALSE
},
...
...
@@ -8559,7 +8559,7 @@ static void test_ShowWindow(void)
/* 11 */
{
SW_HIDE
,
TRUE
,
WS_MAXIMIZE
,
WmHide_1
,
FALSE
},
/* 12 */
{
SW_HIDE
,
FALSE
,
WS_MAXIMIZE
,
WmEmptySeq
,
FALSE
},
/* 13 */
{
SW_SHOWNOACTIVATE
,
FALSE
,
WS_VISIBLE
,
WmShowNoActivate_1
,
FALSE
},
/* 14 */
{
SW_SHOWNOACTIVATE
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
TRU
E
},
/* 14 */
{
SW_SHOWNOACTIVATE
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
FALS
E
},
/* 15 */
{
SW_HIDE
,
TRUE
,
0
,
WmHide_2
,
FALSE
},
/* 16 */
{
SW_HIDE
,
FALSE
,
0
,
WmEmptySeq
,
FALSE
},
/* 17 */
{
SW_SHOW
,
FALSE
,
WS_VISIBLE
,
WmShow
,
FALSE
},
...
...
@@ -8576,15 +8576,15 @@ static void test_ShowWindow(void)
/* 28 */
{
SW_HIDE
,
TRUE
,
WS_MINIMIZE
,
WmHide_2
,
FALSE
},
/* 29 */
{
SW_HIDE
,
FALSE
,
WS_MINIMIZE
,
WmEmptySeq
,
FALSE
},
/* 30 */
{
SW_RESTORE
,
FALSE
,
WS_VISIBLE
,
WmRestore_1
,
FALSE
},
/* 31 */
{
SW_RESTORE
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
TRU
E
},
/* 31 */
{
SW_RESTORE
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
FALS
E
},
/* 32 */
{
SW_HIDE
,
TRUE
,
0
,
WmHide_3
,
TRUE
},
/* 33 */
{
SW_HIDE
,
FALSE
,
0
,
WmEmptySeq
,
FALSE
},
/* 34 */
{
SW_NORMALNA
,
FALSE
,
0
,
WmEmptySeq
,
TRUE
},
/* what does this mean?! */
/* 35 */
{
SW_NORMALNA
,
FALSE
,
0
,
WmEmptySeq
,
TRUE
},
/* 36 */
{
SW_HIDE
,
FALSE
,
0
,
WmEmptySeq
,
FALSE
},
/* 37 */
{
SW_RESTORE
,
FALSE
,
WS_VISIBLE
,
WmRestore_2
,
TRU
E
},
/* 38 */
{
SW_RESTORE
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
TRU
E
},
/* 39 */
{
SW_SHOWNOACTIVATE
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
TRU
E
},
/* 37 */
{
SW_RESTORE
,
FALSE
,
WS_VISIBLE
,
WmRestore_2
,
FALS
E
},
/* 38 */
{
SW_RESTORE
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
FALS
E
},
/* 39 */
{
SW_SHOWNOACTIVATE
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
FALS
E
},
/* 40 */
{
SW_MINIMIZE
,
TRUE
,
WS_VISIBLE
|
WS_MINIMIZE
,
WmMinimize_2
,
TRUE
},
/* 41 */
{
SW_MINIMIZE
,
TRUE
,
WS_VISIBLE
|
WS_MINIMIZE
,
WmMinMax_3
,
FALSE
},
/* 42 */
{
SW_SHOWMAXIMIZED
,
TRUE
,
WS_VISIBLE
|
WS_MAXIMIZE
,
WmShowMaximized_2
,
TRUE
},
...
...
@@ -8596,7 +8596,7 @@ static void test_ShowWindow(void)
/* 48 */
{
SW_SHOWMAXIMIZED
,
TRUE
,
WS_VISIBLE
|
WS_MAXIMIZE
,
WmShowMaximized_3
,
FALSE
},
/* 49 */
{
SW_SHOW
,
TRUE
,
WS_VISIBLE
|
WS_MAXIMIZE
,
WmEmptySeq
,
FALSE
},
/* 50 */
{
SW_SHOWNORMAL
,
TRUE
,
WS_VISIBLE
,
WmRestore_5
,
FALSE
},
/* 51 */
{
SW_SHOWNORMAL
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
TRU
E
},
/* 51 */
{
SW_SHOWNORMAL
,
TRUE
,
WS_VISIBLE
,
WmEmptySeq
,
FALS
E
},
/* 52 */
{
SW_HIDE
,
TRUE
,
0
,
WmHide_1
,
FALSE
},
/* 53 */
{
SW_HIDE
,
FALSE
,
0
,
WmEmptySeq
,
FALSE
},
/* 54 */
{
SW_MINIMIZE
,
FALSE
,
WS_VISIBLE
|
WS_MINIMIZE
,
WmMinimize_3
,
TRUE
},
...
...
dlls/winex11.drv/winpos.c
View file @
92faf7aa
...
...
@@ -618,8 +618,6 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
/* fall through */
case
SW_RESTORE
:
swp
|=
SWP_FRAMECHANGED
;
if
(
!
wasVisible
)
swp
|=
SWP_SHOWWINDOW
;
/* fall through */
case
SW_SHOWNORMAL
:
/* same as SW_NORMAL: */
case
SW_SHOWDEFAULT
:
/* FIXME: should have its own handler */
...
...
@@ -631,6 +629,7 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
}
else
{
if
(
wasVisible
)
return
TRUE
;
swp
|=
SWP_NOSIZE
|
SWP_NOMOVE
;
}
if
(
style
&
WS_CHILD
&&
!
(
swp
&
SWP_STATECHANGED
))
swp
|=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
...
...
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