Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e6f15c58
Commit
e6f15c58
authored
Dec 18, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Pre-allocate the window procedure for the menu class.
parent
d88c3409
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
controls.h
dlls/user32/controls.h
+2
-0
menu.c
dlls/user32/menu.c
+2
-4
winproc.c
dlls/user32/winproc.c
+1
-0
No files found.
dlls/user32/controls.h
View file @
e6f15c58
...
...
@@ -46,6 +46,7 @@ enum builtin_winprocs
/* unicode-only procs */
WINPROC_DESKTOP
,
WINPROC_ICONTITLE
,
WINPROC_MENU
,
NB_BUILTIN_WINPROCS
,
NB_BUILTIN_AW_WINPROCS
=
WINPROC_DESKTOP
};
...
...
@@ -81,6 +82,7 @@ extern const struct builtin_class_descr STATIC_builtin_class DECLSPEC_HIDDEN;
extern
LRESULT
WINAPI
DesktopWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
)
DECLSPEC_HIDDEN
;
extern
LRESULT
WINAPI
IconTitleWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
)
DECLSPEC_HIDDEN
;
extern
LRESULT
WINAPI
PopupMenuWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
)
DECLSPEC_HIDDEN
;
/* Wow handlers */
...
...
dlls/user32/menu.c
View file @
e6f15c58
...
...
@@ -183,8 +183,6 @@ static HMENU top_popup_hmenu;
/* Flag set by EndMenu() to force an exit from menu tracking */
static
BOOL
fEndMenu
=
FALSE
;
static
LRESULT
WINAPI
PopupMenuWndProc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
);
DWORD
WINAPI
DrawMenuBarTemp
(
HWND
hwnd
,
HDC
hDC
,
LPRECT
lprect
,
HMENU
hMenu
,
HFONT
hFont
);
static
BOOL
SetMenuItemInfo_common
(
MENUITEM
*
,
const
MENUITEMINFOW
*
,
BOOL
);
...
...
@@ -197,7 +195,7 @@ const struct builtin_class_descr MENU_builtin_class =
(
LPCWSTR
)
POPUPMENU_CLASS_ATOM
,
/* name */
CS_DROPSHADOW
|
CS_SAVEBITS
|
CS_DBLCLKS
,
/* style */
NULL
,
/* procA (winproc is Unicode only) */
PopupMenuWndProc
,
/* procW */
BUILTIN_WINPROC
(
WINPROC_MENU
),
/* procW */
sizeof
(
HMENU
),
/* extra */
IDC_ARROW
,
/* cursor */
(
HBRUSH
)(
COLOR_MENU
+
1
)
/* brush */
...
...
@@ -3442,7 +3440,7 @@ BOOL WINAPI TrackPopupMenu( HMENU hMenu, UINT wFlags, INT x, INT y,
*
* NOTE: Windows has totally different (and undocumented) popup wndproc.
*/
static
LRESULT
WINAPI
PopupMenuWndProc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
LRESULT
WINAPI
PopupMenuWndProc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TRACE
(
"hwnd=%p msg=0x%04x wp=0x%04lx lp=0x%08lx
\n
"
,
hwnd
,
message
,
wParam
,
lParam
);
...
...
dlls/user32/winproc.c
View file @
e6f15c58
...
...
@@ -76,6 +76,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] =
{
StaticWndProcA
,
StaticWndProcW
},
/* WINPROC_STATIC */
{
NULL
,
DesktopWndProc
},
/* WINPROC_DESKTOP */
{
NULL
,
IconTitleWndProc
},
/* WINPROC_ICONTITLE */
{
NULL
,
PopupMenuWndProc
},
/* WINPROC_MENU */
};
static
UINT
winproc_used
=
NB_BUILTIN_WINPROCS
;
...
...
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