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
3c4f44d1
Commit
3c4f44d1
authored
Sep 04, 2008
by
Vincent Povirk
Committed by
Alexandre Julliard
Sep 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use the correct bitmap location for MNS_CHECKORBMP.
parent
f4ba76e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
menu.c
dlls/user32/menu.c
+6
-4
menu.c
dlls/user32/tests/menu.c
+2
-6
No files found.
dlls/user32/menu.c
View file @
3c4f44d1
...
...
@@ -1504,11 +1504,13 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
bmprc
.
left
=
3
;
else
bmprc
.
left
=
lpitem
->
text
?
menucharsize
.
cx
:
0
;
}
else
{
bmprc
.
left
=
4
;
if
(
!
(
menu
->
dwStyle
&
(
MNS_CHECKORBMP
|
MNS_NOCHECK
)))
bmprc
.
left
+=
GetSystemMetrics
(
SM_CXMENUCHECK
);
}
else
if
(
menu
->
dwStyle
&
MNS_NOCHECK
)
bmprc
.
left
=
4
;
else
if
(
menu
->
dwStyle
&
MNS_CHECKORBMP
)
bmprc
.
left
=
2
;
else
bmprc
.
left
=
4
+
GetSystemMetrics
(
SM_CXMENUCHECK
);
bmprc
.
right
=
bmprc
.
left
+
lpitem
->
bmpsize
.
cx
;
if
(
menuBar
&&
!
(
lpitem
->
hbmpItem
==
HBMMENU_CALLBACK
))
bmprc
.
top
=
0
;
...
...
dlls/user32/tests/menu.c
View file @
3c4f44d1
...
...
@@ -456,12 +456,8 @@ static void test_mbs_help( int ispop, int hassub, int mnuopt,
expect
=
4
;
else
/* mnuopt == 2 */
expect
=
2
;
if
(
ispop
&&
mnuopt
==
2
)
todo_wine
ok
(
expect
==
MOD_rc
[
0
].
left
,
"bitmap left is %d expected %d
\n
"
,
MOD_rc
[
0
].
left
,
expect
);
else
ok
(
expect
==
MOD_rc
[
0
].
left
,
"bitmap left is %d expected %d
\n
"
,
MOD_rc
[
0
].
left
,
expect
);
ok
(
expect
==
MOD_rc
[
0
].
left
,
"bitmap left is %d expected %d
\n
"
,
MOD_rc
[
0
].
left
,
expect
);
failed
=
failed
||
!
(
expect
==
MOD_rc
[
0
].
left
);
/* vertical */
expect
=
(
rc
.
bottom
-
rc
.
top
-
MOD_rc
[
0
].
bottom
+
MOD_rc
[
0
].
top
)
/
2
;
...
...
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