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
7abca950
Commit
7abca950
authored
Apr 11, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Apr 11, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The MEASUREITEMSTRUCT and DRAWITEMSTRUCT were filled wrong.
parent
c2606381
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
menu.c
controls/menu.c
+8
-4
No files found.
controls/menu.c
View file @
7abca950
...
@@ -238,6 +238,8 @@ static void do_debug_print_menuitem(const char *prefix, MENUITEM * mp,
...
@@ -238,6 +238,8 @@ static void do_debug_print_menuitem(const char *prefix, MENUITEM * mp,
/* Nothing */
;
/* Nothing */
;
else
else
dsprintf
(
menu
,
", Text=%p"
,
mp
->
text
);
dsprintf
(
menu
,
", Text=%p"
,
mp
->
text
);
if
(
mp
->
dwItemData
)
dsprintf
(
menu
,
", ItemData=0x%08lx"
,
mp
->
dwItemData
);
dsprintf
(
menu
,
" }"
);
dsprintf
(
menu
,
" }"
);
}
else
{
}
else
{
dsprintf
(
menu
,
"NULL"
);
dsprintf
(
menu
,
"NULL"
);
...
@@ -676,10 +678,11 @@ static void MENU_CalcItemSize( HDC hdc, MENUITEM *lpitem, HWND hwndOwner,
...
@@ -676,10 +678,11 @@ static void MENU_CalcItemSize( HDC hdc, MENUITEM *lpitem, HWND hwndOwner,
{
{
MEASUREITEMSTRUCT
mis
;
MEASUREITEMSTRUCT
mis
;
mis
.
CtlType
=
ODT_MENU
;
mis
.
CtlType
=
ODT_MENU
;
mis
.
CtlID
=
0
;
mis
.
itemID
=
lpitem
->
wID
;
mis
.
itemID
=
lpitem
->
wID
;
mis
.
itemData
=
(
DWORD
)
lpitem
->
text
;
mis
.
itemData
=
(
DWORD
)
lpitem
->
dwItemData
;
mis
.
itemHeight
=
16
;
mis
.
itemHeight
=
0
;
mis
.
itemWidth
=
3
0
;
mis
.
itemWidth
=
0
;
SendMessageA
(
hwndOwner
,
WM_MEASUREITEM
,
0
,
(
LPARAM
)
&
mis
);
SendMessageA
(
hwndOwner
,
WM_MEASUREITEM
,
0
,
(
LPARAM
)
&
mis
);
lpitem
->
rect
.
bottom
+=
mis
.
itemHeight
;
lpitem
->
rect
.
bottom
+=
mis
.
itemHeight
;
lpitem
->
rect
.
right
+=
mis
.
itemWidth
;
lpitem
->
rect
.
right
+=
mis
.
itemWidth
;
...
@@ -932,8 +935,9 @@ static void MENU_DrawMenuItem( HWND hwnd, HDC hdc, MENUITEM *lpitem,
...
@@ -932,8 +935,9 @@ static void MENU_DrawMenuItem( HWND hwnd, HDC hdc, MENUITEM *lpitem,
DRAWITEMSTRUCT
dis
;
DRAWITEMSTRUCT
dis
;
dis
.
CtlType
=
ODT_MENU
;
dis
.
CtlType
=
ODT_MENU
;
dis
.
CtlID
=
0
;
dis
.
itemID
=
lpitem
->
wID
;
dis
.
itemID
=
lpitem
->
wID
;
dis
.
itemData
=
(
DWORD
)
lpitem
->
text
;
dis
.
itemData
=
(
DWORD
)
lpitem
->
dwItemData
;
dis
.
itemState
=
0
;
dis
.
itemState
=
0
;
if
(
lpitem
->
fState
&
MF_CHECKED
)
dis
.
itemState
|=
ODS_CHECKED
;
if
(
lpitem
->
fState
&
MF_CHECKED
)
dis
.
itemState
|=
ODS_CHECKED
;
if
(
lpitem
->
fState
&
MF_GRAYED
)
dis
.
itemState
|=
ODS_GRAYED
;
if
(
lpitem
->
fState
&
MF_GRAYED
)
dis
.
itemState
|=
ODS_GRAYED
;
...
...
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