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
957f1f98
Commit
957f1f98
authored
Jun 04, 2002
by
Andreas Mohr
Committed by
Alexandre Julliard
Jun 04, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only allow tabs in popup menus, and make sure to never display them.
parent
fd625ddb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
menu.c
controls/menu.c
+6
-9
No files found.
controls/menu.c
View file @
957f1f98
...
...
@@ -1374,16 +1374,13 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
{
rect
.
left
+=
MENU_BAR_ITEMS_SPACE
/
2
;
rect
.
right
-=
MENU_BAR_ITEMS_SPACE
/
2
;
i
=
strlenW
(
lpitem
->
text
);
}
else
{
for
(
i
=
0
;
lpitem
->
text
[
i
];
i
++
)
if
((
lpitem
->
text
[
i
]
==
'\t'
)
||
(
lpitem
->
text
[
i
]
==
'\b'
))
break
;
}
if
(
!
(
TWEAK_WineLook
==
WIN31_LOOK
)
&&
(
lpitem
->
fState
&
MF_GRAYED
))
for
(
i
=
0
;
lpitem
->
text
[
i
];
i
++
)
if
((
lpitem
->
text
[
i
]
==
'\t'
)
||
(
lpitem
->
text
[
i
]
==
'\b'
))
break
;
if
(
(
TWEAK_WineLook
!=
WIN31_LOOK
)
&&
(
lpitem
->
fState
&
MF_GRAYED
))
{
if
(
!
(
lpitem
->
fState
&
MF_HILITE
)
)
{
...
...
@@ -1398,7 +1395,7 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
DrawTextW
(
hdc
,
lpitem
->
text
,
i
,
&
rect
,
uFormat
);
/* paint the shortcut text */
if
(
lpitem
->
text
[
i
])
/* There's a tab or flush-right char */
if
(
!
menuBar
&&
lpitem
->
text
[
i
])
/* There's a tab or flush-right char */
{
if
(
lpitem
->
text
[
i
]
==
'\t'
)
{
...
...
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