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
bc1d1df0
Commit
bc1d1df0
authored
Feb 14, 1999
by
Huw D M Davies
Committed by
Alexandre Julliard
Feb 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIN31 Look still needs a close button on the left of the menu bar.
parent
ae806896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
mdi.c
windows/mdi.c
+12
-10
No files found.
windows/mdi.c
View file @
bc1d1df0
...
...
@@ -776,24 +776,25 @@ static BOOL32 MDI_AugmentFrameMenu( MDICLIENTINFO* ci, WND *frame,
TRACE
(
mdi
,
"
\t
got popup %04x in sysmenu %04x
\n
"
,
hSysPopup
,
child
->
hSysMenu
);
AppendMenu32A
(
frame
->
wIDmenu
,
MF_HELP
|
MF_BITMAP
,
AppendMenu32A
(
frame
->
wIDmenu
,
MF_HELP
|
MF_BITMAP
,
SC_MINIMIZE
,
(
LPSTR
)(
DWORD
)
MAGIC_REDUCE
)
;
AppendMenu32A
(
frame
->
wIDmenu
,
MF_HELP
|
MF_BITMAP
,
AppendMenu32A
(
frame
->
wIDmenu
,
MF_HELP
|
MF_BITMAP
,
SC_RESTORE
,
(
LPSTR
)(
DWORD
)
MAGIC_RESTORE
);
// The close button is only present in Win 95 look
if
(
TWEAK_WineLook
>
WIN31_LOOK
)
{
if
(
!
InsertMenu32A
(
frame
->
wIDmenu
,
0
,
MF_BYPOSITION
|
MF_BITMAP
|
MF_POPUP
,
hSysPopup
,
(
LPSTR
)(
DWORD
)
hBmpClose
))
{
TRACE
(
mdi
,
"not inserted
\n
"
);
TRACE
(
mdi
,
"not inserted
\n
"
);
DestroyMenu32
(
hSysPopup
);
return
0
;
}
AppendMenu32A
(
frame
->
wIDmenu
,
MF_HELP
|
MF_BITMAP
,
// The close button is only present in Win 95 look
if
(
TWEAK_WineLook
>
WIN31_LOOK
)
{
AppendMenu32A
(
frame
->
wIDmenu
,
MF_HELP
|
MF_BITMAP
,
SC_CLOSE
,
(
LPSTR
)(
DWORD
)
MAGIC_CLOSE
);
}
}
EnableMenuItem32
(
hSysPopup
,
SC_SIZE
,
MF_BYCOMMAND
|
MF_GRAYED
);
EnableMenuItem32
(
hSysPopup
,
SC_MOVE
,
MF_BYCOMMAND
|
MF_GRAYED
);
...
...
@@ -818,10 +819,11 @@ static BOOL32 MDI_RestoreFrameMenu( WND *frameWnd, HWND32 hChild )
if
(
!
(
iId
==
SC_RESTORE
||
iId
==
SC_CLOSE
)
)
return
0
;
// app button
RemoveMenu32
(
frameWnd
->
wIDmenu
,
0
,
MF_BYPOSITION
);
if
(
TWEAK_WineLook
>
WIN31_LOOK
)
{
// app button
RemoveMenu32
(
frameWnd
->
wIDmenu
,
0
,
MF_BYPOSITION
);
// close
DeleteMenu32
(
frameWnd
->
wIDmenu
,
GetMenuItemCount32
(
frameWnd
->
wIDmenu
)
-
1
,
MF_BYPOSITION
);
}
...
...
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