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
cf2ff27f
Commit
cf2ff27f
authored
Mar 14, 2001
by
Gerard Patel
Committed by
Alexandre Julliard
Mar 14, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recalculate menu sizes if WM_INITMENU has recreated/changed something.
parent
db47fd09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
menu.c
controls/menu.c
+13
-1
No files found.
controls/menu.c
View file @
cf2ff27f
...
...
@@ -3016,8 +3016,20 @@ static BOOL MENU_InitTracking(HWND hWnd, HMENU hMenu, BOOL bPopup, UINT wFlags)
SendMessageA
(
hWnd
,
WM_SETCURSOR
,
hWnd
,
HTCAPTION
);
if
(
!
(
wFlags
&
TPM_NONOTIFY
))
{
POPUPMENU
*
menu
;
SendMessageA
(
hWnd
,
WM_INITMENU
,
hMenu
,
0
);
if
((
menu
=
MENU_GetMenu
(
hMenu
))
&&
(
!
menu
->
Height
))
{
/* app changed/recreated menu bar entries in WM_INITMENU
Recalculate menu sizes else clicks will not work */
RECT
r
;
HDC
hdc
=
GetDCEx
(
hWnd
,
0
,
DCX_CACHE
|
DCX_WINDOW
);
SelectObject
(
hdc
,
hMenuFont
);
GetClientRect
(
hWnd
,
&
r
);
/* probably too simple */
MENU_MenuBarCalcSize
(
hdc
,
&
r
,
menu
,
hWnd
);
ReleaseDC
(
hWnd
,
hdc
);
}
}
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