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
21222772
Commit
21222772
authored
Mar 02, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ask for an MDI child id in all cases.
parent
d515640b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
mdi.c
windows/mdi.c
+2
-1
win.c
windows/win.c
+14
-6
No files found.
windows/mdi.c
View file @
21222772
...
...
@@ -258,6 +258,7 @@ void MDI_CalcDefaultChildPos( HWND hwndClient, INT total, LPPOINT lpPos, INT del
MDICLIENTINFO
*
ci
=
get_client_info
(
hwndClient
);
total
=
ci
?
ci
->
nTotalCreated
:
0
;
*
id
=
ci
->
idFirstChild
+
ci
->
nActiveChildren
;
TRACE
(
"MDI child id %04x
\n
"
,
*
id
);
}
GetClientRect
(
hwndClient
,
&
rect
);
...
...
@@ -1039,7 +1040,7 @@ static LRESULT MDIClientWndProc_common( HWND hwnd, UINT message,
if
(
!
hBmpClose
)
hBmpClose
=
CreateMDIMenuBitmap
();
TRACE
(
"Client created: hwnd %p, Window menu %p, idFirst = %
u
\n
"
,
TRACE
(
"Client created: hwnd %p, Window menu %p, idFirst = %
04x
\n
"
,
hwnd
,
ci
->
hWindowMenu
,
ci
->
idFirstChild
);
return
0
;
}
...
...
windows/win.c
View file @
21222772
...
...
@@ -800,6 +800,18 @@ BOOL WIN_CreateDesktopWindow(void)
*/
static
void
WIN_FixCoordinates
(
CREATESTRUCTA
*
cs
,
INT
*
sw
)
{
POINT
pos
[
2
];
if
(
cs
->
dwExStyle
&
WS_EX_MDICHILD
)
{
UINT
id
=
0
;
MDI_CalcDefaultChildPos
(
cs
->
hwndParent
,
-
1
,
pos
,
0
,
&
id
);
if
(
!
(
cs
->
style
&
WS_POPUP
))
cs
->
hMenu
=
(
HMENU
)
id
;
TRACE
(
"MDI child id %04x
\n
"
,
id
);
}
if
(
cs
->
x
==
CW_USEDEFAULT
||
cs
->
x
==
CW_USEDEFAULT16
||
cs
->
cx
==
CW_USEDEFAULT
||
cs
->
cx
==
CW_USEDEFAULT16
)
{
...
...
@@ -807,12 +819,6 @@ static void WIN_FixCoordinates( CREATESTRUCTA *cs, INT *sw)
{
if
(
cs
->
dwExStyle
&
WS_EX_MDICHILD
)
{
UINT
id
=
0
;
POINT
pos
[
2
];
MDI_CalcDefaultChildPos
(
cs
->
hwndParent
,
-
1
,
pos
,
0
,
&
id
);
if
(
!
(
cs
->
style
&
WS_POPUP
))
cs
->
hMenu
=
(
HMENU
)
id
;
if
(
cs
->
x
==
CW_USEDEFAULT
||
cs
->
x
==
CW_USEDEFAULT16
)
{
cs
->
x
=
pos
[
0
].
x
;
...
...
@@ -1931,6 +1937,8 @@ static LONG_PTR WIN_GetWindowLong( HWND hwnd, INT offset, WINDOWPROCTYPE type )
LONG_PTR
retvalue
=
0
;
WND
*
wndPtr
;
TRACE
(
"%p %d %x
\n
"
,
hwnd
,
offset
,
type
);
if
(
offset
==
GWLP_HWNDPARENT
)
{
HWND
parent
=
GetAncestor
(
hwnd
,
GA_PARENT
);
...
...
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