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
029aec19
Commit
029aec19
authored
Jul 24, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Jul 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Remove dead code for suppressing menu drawing.
parent
b196d0cc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
22 deletions
+6
-22
controls.h
dlls/user32/controls.h
+1
-2
menu.c
dlls/user32/menu.c
+1
-16
nonclient.c
dlls/user32/nonclient.c
+4
-4
No files found.
dlls/user32/controls.h
View file @
029aec19
...
...
@@ -160,8 +160,7 @@ extern UINT MENU_GetMenuBarHeight( HWND hwnd, UINT menubarWidth,
extern
BOOL
MENU_SetMenu
(
HWND
,
HMENU
)
DECLSPEC_HIDDEN
;
extern
void
MENU_TrackMouseMenuBar
(
HWND
hwnd
,
INT
ht
,
POINT
pt
)
DECLSPEC_HIDDEN
;
extern
void
MENU_TrackKbdMenuBar
(
HWND
hwnd
,
UINT
wParam
,
WCHAR
wChar
)
DECLSPEC_HIDDEN
;
extern
UINT
MENU_DrawMenuBar
(
HDC
hDC
,
LPRECT
lprect
,
HWND
hwnd
,
BOOL
suppress_draw
)
DECLSPEC_HIDDEN
;
extern
UINT
MENU_DrawMenuBar
(
HDC
hDC
,
LPRECT
lprect
,
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
MENU_EndMenu
(
HWND
)
DECLSPEC_HIDDEN
;
/* nonclient area */
...
...
dlls/user32/menu.c
View file @
029aec19
...
...
@@ -1801,11 +1801,9 @@ static void MENU_DrawPopupMenu( HWND hwnd, HDC hdc, HMENU hmenu )
* Paint a menu bar. Returns the height of the menu bar.
* called from [windows/nonclient.c]
*/
UINT
MENU_DrawMenuBar
(
HDC
hDC
,
LPRECT
lprect
,
HWND
hwnd
,
BOOL
suppress_draw
)
UINT
MENU_DrawMenuBar
(
HDC
hDC
,
LPRECT
lprect
,
HWND
hwnd
)
{
LPPOPUPMENU
lppop
;
HFONT
hfontOld
=
0
;
HMENU
hMenu
=
GetMenu
(
hwnd
);
lppop
=
MENU_GetMenu
(
hMenu
);
...
...
@@ -1814,19 +1812,6 @@ UINT MENU_DrawMenuBar( HDC hDC, LPRECT lprect, HWND hwnd,
return
GetSystemMetrics
(
SM_CYMENU
);
}
if
(
suppress_draw
)
{
hfontOld
=
SelectObject
(
hDC
,
get_menu_font
(
FALSE
));
if
(
lppop
->
Height
==
0
)
MENU_MenuBarCalcSize
(
hDC
,
lprect
,
lppop
,
hwnd
);
lprect
->
bottom
=
lprect
->
top
+
lppop
->
Height
;
if
(
hfontOld
)
SelectObject
(
hDC
,
hfontOld
);
return
lppop
->
Height
;
}
else
return
DrawMenuBarTemp
(
hwnd
,
hDC
,
lprect
,
hMenu
,
NULL
);
}
...
...
dlls/user32/nonclient.c
View file @
029aec19
...
...
@@ -980,7 +980,7 @@ static void NC_DrawCaption( HDC hdc, RECT *rect, HWND hwnd, DWORD style,
*
* Paint the non-client area for windows.
*/
static
void
NC_DoNCPaint
(
HWND
hwnd
,
HRGN
clip
,
BOOL
suppress_menupaint
)
static
void
NC_DoNCPaint
(
HWND
hwnd
,
HRGN
clip
)
{
HDC
hdc
;
RECT
rfuzz
,
rect
,
rectClip
;
...
...
@@ -1062,7 +1062,7 @@ static void NC_DoNCPaint( HWND hwnd, HRGN clip, BOOL suppress_menupaint )
TRACE
(
"Calling DrawMenuBar with rect (%s)
\n
"
,
wine_dbgstr_rect
(
&
r
));
rect
.
top
+=
MENU_DrawMenuBar
(
hdc
,
&
r
,
hwnd
,
suppress_menupaint
)
+
1
;
rect
.
top
+=
MENU_DrawMenuBar
(
hdc
,
&
r
,
hwnd
)
+
1
;
}
TRACE
(
"After MenuBar, rect is (%s).
\n
"
,
wine_dbgstr_rect
(
&
rect
));
...
...
@@ -1109,7 +1109,7 @@ LRESULT NC_HandleNCPaint( HWND hwnd , HRGN clip)
if
(
dwStyle
&
WS_MINIMIZE
)
WINPOS_RedrawIconTitle
(
hwnd
);
else
NC_DoNCPaint
(
hwnd
,
clip
,
FALSE
);
NC_DoNCPaint
(
hwnd
,
clip
);
}
return
0
;
}
...
...
@@ -1143,7 +1143,7 @@ LRESULT NC_HandleNCActivate( HWND hwnd, WPARAM wParam, LPARAM lParam )
if
(
IsIconic
(
hwnd
))
WINPOS_RedrawIconTitle
(
hwnd
);
else
NC_DoNCPaint
(
hwnd
,
(
HRGN
)
1
,
FALSE
);
NC_DoNCPaint
(
hwnd
,
(
HRGN
)
1
);
}
return
TRUE
;
...
...
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