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
6b0cdc19
Commit
6b0cdc19
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 message class.
parent
e6f15c58
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
controls.h
dlls/user32/controls.h
+2
-0
message.c
dlls/user32/message.c
+4
-4
winproc.c
dlls/user32/winproc.c
+1
-0
No files found.
dlls/user32/controls.h
View file @
6b0cdc19
...
...
@@ -47,6 +47,7 @@ enum builtin_winprocs
WINPROC_DESKTOP
,
WINPROC_ICONTITLE
,
WINPROC_MENU
,
WINPROC_MESSAGE
,
NB_BUILTIN_WINPROCS
,
NB_BUILTIN_AW_WINPROCS
=
WINPROC_DESKTOP
};
...
...
@@ -83,6 +84,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
;
extern
LRESULT
WINAPI
MessageWndProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
)
DECLSPEC_HIDDEN
;
/* Wow handlers */
...
...
dlls/user32/message.c
View file @
6b0cdc19
...
...
@@ -91,13 +91,13 @@ struct send_message_info
/* Message class descriptor */
static
const
WCHAR
messageW
[]
=
{
'M'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
0
};
static
LRESULT
WINAPI
message_winproc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
);
const
struct
builtin_class_descr
MESSAGE_builtin_class
=
{
messageW
,
/* name */
0
,
/* style */
NULL
,
/* procA (winproc is Unicode only) */
message_winproc
,
/* procW */
BUILTIN_WINPROC
(
WINPROC_MESSAGE
),
/* procW */
0
,
/* extra */
IDC_ARROW
,
/* cursor */
0
/* brush */
...
...
@@ -333,11 +333,11 @@ static inline BOOL get_pending_wmchar( MSG *msg, UINT first, UINT last, BOOL rem
/***********************************************************************
*
message_winp
roc
*
MessageWndP
roc
*
* Window procedure for "Message" windows (HWND_MESSAGE parent).
*/
static
LRESULT
WINAPI
message_winp
roc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
LRESULT
WINAPI
MessageWndP
roc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
message
==
WM_NCCREATE
)
return
TRUE
;
return
0
;
/* all other messages are ignored */
...
...
dlls/user32/winproc.c
View file @
6b0cdc19
...
...
@@ -77,6 +77,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] =
{
NULL
,
DesktopWndProc
},
/* WINPROC_DESKTOP */
{
NULL
,
IconTitleWndProc
},
/* WINPROC_ICONTITLE */
{
NULL
,
PopupMenuWndProc
},
/* WINPROC_MENU */
{
NULL
,
MessageWndProc
},
/* WINPROC_MESSAGE */
};
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