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
21750e27
Commit
21750e27
authored
Aug 09, 2006
by
Michael Kaufmann
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Fix the keyboard navigation and some graphical glitches for multi-column menus.
parent
aa45d8ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
menu.c
dlls/user/menu.c
+5
-6
No files found.
dlls/user/menu.c
View file @
21750e27
...
...
@@ -524,7 +524,7 @@ static UINT MENU_GetStartOfNextColumn(
return
i
;
for
(
;
i
<
menu
->
nItems
;
++
i
)
{
if
(
menu
->
items
[
i
].
fType
&
MF_MENUBARBREAK
)
if
(
menu
->
items
[
i
].
fType
&
(
MF_MENUBREAK
|
MF_MENUBARBREAK
)
)
return
i
;
}
...
...
@@ -554,14 +554,14 @@ static UINT MENU_GetStartOfPrevColumn(
/* Find the start of the column */
for
(
i
=
menu
->
FocusedItem
;
i
!=
0
&&
!
(
menu
->
items
[
i
].
fType
&
MF_MENUBARBREAK
);
!
(
menu
->
items
[
i
].
fType
&
(
MF_MENUBREAK
|
MF_MENUBARBREAK
)
);
--
i
);
/* empty */
if
(
i
==
0
)
return
NO_SELECTED_ITEM
;
for
(
--
i
;
i
!=
0
;
--
i
)
{
if
(
menu
->
items
[
i
].
fType
&
MF_MENUBARBREAK
)
if
(
menu
->
items
[
i
].
fType
&
(
MF_MENUBREAK
|
MF_MENUBARBREAK
)
)
break
;
}
...
...
@@ -1131,7 +1131,7 @@ static void MENU_PopupMenuCalcSize( LPPOPUPMENU lppop, HWND hwndOwner )
{
lpitem
=
&
lppop
->
items
[
start
];
orgX
=
maxX
;
if
(
lpitem
->
fType
&
MF_MENUBREAK
)
if
(
lpitem
->
fType
&
(
MF_MENUBREAK
|
MF_MENUBARBREAK
)
)
orgX
+=
MENU_COL_SPACE
;
orgY
=
MENU_TOP_MARGIN
;
...
...
@@ -1143,8 +1143,6 @@ static void MENU_PopupMenuCalcSize( LPPOPUPMENU lppop, HWND hwndOwner )
(
lpitem
->
fType
&
(
MF_MENUBREAK
|
MF_MENUBARBREAK
)))
break
;
MENU_CalcItemSize
(
hdc
,
lpitem
,
hwndOwner
,
orgX
,
orgY
,
FALSE
,
lppop
);
if
(
lpitem
->
fType
&
MF_MENUBARBREAK
)
orgX
++
;
maxX
=
max
(
maxX
,
lpitem
->
rect
.
right
);
orgY
=
lpitem
->
rect
.
bottom
;
if
(
IS_STRING_ITEM
(
lpitem
->
fType
)
&&
lpitem
->
xTab
)
...
...
@@ -1457,6 +1455,7 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
HPEN
oldPen
;
RECT
rc
=
rect
;
rc
.
left
-=
MENU_COL_SPACE
/
2
+
1
;
rc
.
top
=
3
;
rc
.
bottom
=
height
-
3
;
if
(
flat_menu
)
...
...
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