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
101c4309
Commit
101c4309
authored
Nov 22, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed use of HBMMENU_* in switch statements.
parent
547cdc2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
menu.c
controls/menu.c
+22
-22
No files found.
controls/menu.c
View file @
101c4309
...
...
@@ -719,26 +719,26 @@ static void MENU_GetBitmapItemSize( UINT id, DWORD data, SIZE *size )
{
switch
(
LOWORD
(
id
))
{
case
HBMMENU_SYSTEM
:
case
(
INT_PTR
)
HBMMENU_SYSTEM
:
if
(
data
)
{
bmp
=
(
HBITMAP
)
data
;
break
;
}
/* fall through */
case
HBMMENU_MBAR_RESTORE
:
case
HBMMENU_MBAR_MINIMIZE
:
case
HBMMENU_MBAR_MINIMIZE_D
:
case
HBMMENU_MBAR_CLOSE
:
case
HBMMENU_MBAR_CLOSE_D
:
case
(
INT_PTR
)
HBMMENU_MBAR_RESTORE
:
case
(
INT_PTR
)
HBMMENU_MBAR_MINIMIZE
:
case
(
INT_PTR
)
HBMMENU_MBAR_MINIMIZE_D
:
case
(
INT_PTR
)
HBMMENU_MBAR_CLOSE
:
case
(
INT_PTR
)
HBMMENU_MBAR_CLOSE_D
:
size
->
cx
=
GetSystemMetrics
(
SM_CXSIZE
);
size
->
cy
=
GetSystemMetrics
(
SM_CYSIZE
);
return
;
case
HBMMENU_CALLBACK
:
case
HBMMENU_POPUP_CLOSE
:
case
HBMMENU_POPUP_RESTORE
:
case
HBMMENU_POPUP_MAXIMIZE
:
case
HBMMENU_POPUP_MINIMIZE
:
case
(
INT_PTR
)
HBMMENU_CALLBACK
:
case
(
INT_PTR
)
HBMMENU_POPUP_CLOSE
:
case
(
INT_PTR
)
HBMMENU_POPUP_RESTORE
:
case
(
INT_PTR
)
HBMMENU_POPUP_MAXIMIZE
:
case
(
INT_PTR
)
HBMMENU_POPUP_MINIMIZE
:
default:
FIXME
(
"Magic 0x%08x not implemented
\n
"
,
id
);
return
;
...
...
@@ -775,7 +775,7 @@ static void MENU_DrawBitmapItem( HDC hdc, MENUITEM *lpitem, const RECT *rect, BO
switch
(
LOWORD
(
lpitem
->
text
))
{
case
HBMMENU_SYSTEM
:
case
(
INT_PTR
)
HBMMENU_SYSTEM
:
if
(
lpitem
->
dwItemData
)
{
bmp
=
(
HBITMAP
)
lpitem
->
dwItemData
;
...
...
@@ -790,26 +790,26 @@ static void MENU_DrawBitmapItem( HDC hdc, MENUITEM *lpitem, const RECT *rect, BO
bm
.
bmWidth
-=
bmp_xoffset
;
}
goto
got_bitmap
;
case
HBMMENU_MBAR_RESTORE
:
case
(
INT_PTR
)
HBMMENU_MBAR_RESTORE
:
flags
=
DFCS_CAPTIONRESTORE
;
break
;
case
HBMMENU_MBAR_MINIMIZE
:
case
(
INT_PTR
)
HBMMENU_MBAR_MINIMIZE
:
flags
=
DFCS_CAPTIONMIN
;
break
;
case
HBMMENU_MBAR_MINIMIZE_D
:
case
(
INT_PTR
)
HBMMENU_MBAR_MINIMIZE_D
:
flags
=
DFCS_CAPTIONMIN
|
DFCS_INACTIVE
;
break
;
case
HBMMENU_MBAR_CLOSE
:
case
(
INT_PTR
)
HBMMENU_MBAR_CLOSE
:
flags
=
DFCS_CAPTIONCLOSE
;
break
;
case
HBMMENU_MBAR_CLOSE_D
:
case
(
INT_PTR
)
HBMMENU_MBAR_CLOSE_D
:
flags
=
DFCS_CAPTIONCLOSE
|
DFCS_INACTIVE
;
break
;
case
HBMMENU_CALLBACK
:
case
HBMMENU_POPUP_CLOSE
:
case
HBMMENU_POPUP_RESTORE
:
case
HBMMENU_POPUP_MAXIMIZE
:
case
HBMMENU_POPUP_MINIMIZE
:
case
(
INT_PTR
)
HBMMENU_CALLBACK
:
case
(
INT_PTR
)
HBMMENU_POPUP_CLOSE
:
case
(
INT_PTR
)
HBMMENU_POPUP_RESTORE
:
case
(
INT_PTR
)
HBMMENU_POPUP_MAXIMIZE
:
case
(
INT_PTR
)
HBMMENU_POPUP_MINIMIZE
:
default:
FIXME
(
"Magic 0x%08x not implemented
\n
"
,
LOWORD
(
lpitem
->
text
));
return
;
...
...
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