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
c99b26d9
Commit
c99b26d9
authored
Sep 23, 2003
by
Rein Klazes
Committed by
Alexandre Julliard
Sep 23, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MDISetMenu in the case it is called before a Windows Menu exists
as Agent newsreader does.
parent
e0fffb6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
mdi.c
windows/mdi.c
+9
-12
No files found.
windows/mdi.c
View file @
c99b26d9
...
...
@@ -378,22 +378,21 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
if
(
ci
->
hwndChildMaximized
&&
hmenuFrame
&&
hmenuFrame
!=
oldFrameMenu
)
MDI_RestoreFrameMenu
(
GetParent
(
hwnd
),
ci
->
hwndChildMaximized
);
if
(
hmenuWindow
&&
ci
->
hWindowMenu
&&
hmenuWindow
!=
ci
->
hWindowMenu
)
if
(
hmenuWindow
&&
hmenuWindow
!=
ci
->
hWindowMenu
)
{
/* delete menu items from ci->hWindowMenu
* and add them to hmenuWindow */
INT
i
=
GetMenuItemCount
(
ci
->
hWindowMenu
)
-
1
;
INT
pos
=
GetMenuItemCount
(
hmenuWindow
)
+
1
;
AppendMenuA
(
hmenuWindow
,
MF_SEPARATOR
,
0
,
NULL
);
if
(
ci
->
nActiveChildren
)
/* Agent newsreader calls this function with ci->hWindowMenu == NULL */
if
(
ci
->
hWindowMenu
&&
ci
->
nActiveChildren
)
{
INT
j
;
LPWSTR
buffer
=
NULL
;
MENUITEMINFOW
mii
;
INT
nbWindowsMenuItems
;
/* num of documents shown + "More Windows..." if present */
INT
i
=
GetMenuItemCount
(
ci
->
hWindowMenu
)
-
1
;
INT
pos
=
GetMenuItemCount
(
hmenuWindow
)
+
1
;
AppendMenuA
(
hmenuWindow
,
MF_SEPARATOR
,
0
,
NULL
);
if
(
ci
->
nActiveChildren
<=
MDI_MOREWINDOWSLIMIT
)
nbWindowsMenuItems
=
ci
->
nActiveChildren
;
...
...
@@ -424,11 +423,9 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
buffer
=
NULL
;
}
}
/* remove separator */
DeleteMenu
(
ci
->
hWindowMenu
,
i
,
MF_BYPOSITION
);
}
/* remove separator */
DeleteMenu
(
ci
->
hWindowMenu
,
i
,
MF_BYPOSITION
);
ci
->
hWindowMenu
=
hmenuWindow
;
}
...
...
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