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
b3f4091b
Commit
b3f4091b
authored
Jul 14, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Clamp newly created windows to the minimum window size.
parent
ffd66dc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
msg.c
dlls/user32/tests/msg.c
+3
-3
win.c
dlls/user32/win.c
+2
-0
No files found.
dlls/user32/tests/msg.c
View file @
b3f4091b
...
...
@@ -3374,7 +3374,7 @@ static void test_mdi_messages(void)
0
,
0
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
mdi_client
,
0
,
GetModuleHandleA
(
0
),
NULL
);
assert
(
mdi_child2
);
ok_sequence
(
WmCreateMDIchildInvisibleMaxSeq4
,
"Create maximized invisible MDI child window"
,
TRU
E
);
ok_sequence
(
WmCreateMDIchildInvisibleMaxSeq4
,
"Create maximized invisible MDI child window"
,
FALS
E
);
ok
(
IsZoomed
(
mdi_child2
),
"MDI child should be maximized
\n
"
);
ok
(
!
(
GetWindowLongA
(
mdi_child2
,
GWL_STYLE
)
&
WS_VISIBLE
),
"MDI child should be not visible
\n
"
);
ok
(
!
IsWindowVisible
(
mdi_child2
),
"MDI child should be not visible
\n
"
);
...
...
@@ -4577,10 +4577,10 @@ static void test_setwindowpos(void)
NULL
,
NULL
,
0
);
GetWindowRect
(
hwnd
,
&
rc
);
todo_wine
expect
(
sysX
,
rc
.
right
);
expect
(
sysX
,
rc
.
right
);
expect
(
winY
,
rc
.
bottom
);
GetClientRect
(
hwnd
,
&
rc
);
todo_wine
expect
(
sysX
-
6
,
rc
.
right
);
expect
(
sysX
-
6
,
rc
.
right
);
expect
(
winY
-
25
,
rc
.
bottom
);
flush_events
();
...
...
dlls/user32/win.c
View file @
b3f4091b
...
...
@@ -1165,6 +1165,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, UINT flags
WINPOS_GetMinMaxInfo
(
hwnd
,
&
maxSize
,
&
maxPos
,
&
minTrack
,
&
maxTrack
);
if
(
maxTrack
.
x
<
cx
)
cx
=
maxTrack
.
x
;
if
(
maxTrack
.
y
<
cy
)
cy
=
maxTrack
.
y
;
if
(
minTrack
.
x
>
cx
)
cx
=
minTrack
.
x
;
if
(
minTrack
.
y
>
cy
)
cy
=
minTrack
.
y
;
}
if
(
cx
<
0
)
cx
=
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