Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
101c4309
Commit
101c4309
authored
22 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Fixed use of HBMMENU_* in switch statements.
parent
547cdc2b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controls/menu.c
+22
-22
22 additions, 22 deletions
controls/menu.c
with
22 additions
and
22 deletions
controls/menu.c
+
22
−
22
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment