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
ca710edc
Commit
ca710edc
authored
Jul 23, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Jul 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: MDI tile and cascade should not resize non-resizable windows.
parent
1c07a97f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
mdi.c
dlls/user32/mdi.c
+10
-3
No files found.
dlls/user32/mdi.c
View file @
ca710edc
...
...
@@ -726,13 +726,17 @@ static LONG MDICascade( HWND client, MDICLIENTINFO *ci )
/* walk the list (backwards) and move windows */
for
(
i
=
total
-
1
;
i
>=
0
;
i
--
)
{
LONG
style
;
LONG
posOptions
=
SWP_DRAWFRAME
|
SWP_NOACTIVATE
|
SWP_NOZORDER
;
MDI_CalcDefaultChildPos
(
client
,
n
++
,
pos
,
delta
,
NULL
);
TRACE
(
"move %p to (%d,%d) size [%d,%d]
\n
"
,
win_array
[
i
],
pos
[
0
].
x
,
pos
[
0
].
y
,
pos
[
1
].
x
,
pos
[
1
].
y
);
style
=
GetWindowLongW
(
win_array
[
i
],
GWL_STYLE
);
if
(
!
(
style
&
WS_SIZEBOX
))
posOptions
|=
SWP_NOSIZE
;
SetWindowPos
(
win_array
[
i
],
0
,
pos
[
0
].
x
,
pos
[
0
].
y
,
pos
[
1
].
x
,
pos
[
1
].
y
,
SWP_DRAWFRAME
|
SWP_NOACTIVATE
|
SWP_NOZORDER
);
posOptions
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
win_array
);
...
...
@@ -812,8 +816,11 @@ static void MDITile( HWND client, MDICLIENTINFO *ci, WPARAM wParam )
y
=
0
;
for
(
r
=
1
;
r
<=
rows
&&
*
pWnd
;
r
++
,
i
++
)
{
SetWindowPos
(
*
pWnd
,
0
,
x
,
y
,
xsize
,
ysize
,
SWP_DRAWFRAME
|
SWP_NOACTIVATE
|
SWP_NOZORDER
);
LONG
posOptions
=
SWP_DRAWFRAME
|
SWP_NOACTIVATE
|
SWP_NOZORDER
;
LONG
style
=
GetWindowLongW
(
win_array
[
i
],
GWL_STYLE
);
if
(
!
(
style
&
WS_SIZEBOX
))
posOptions
|=
SWP_NOSIZE
;
SetWindowPos
(
*
pWnd
,
0
,
x
,
y
,
xsize
,
ysize
,
posOptions
);
y
+=
ysize
;
pWnd
++
;
}
...
...
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