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
c9370c44
Commit
c9370c44
authored
Jun 25, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Register the builtin 'Message' window class.
parent
81e6edbd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
class.c
dlls/user32/class.c
+1
-0
controls.h
dlls/user32/controls.h
+1
-0
message.c
dlls/user32/message.c
+29
-0
No files found.
dlls/user32/class.c
View file @
c9370c44
...
...
@@ -421,6 +421,7 @@ void CLASS_RegisterBuiltinClasses(void)
register_builtin
(
&
LISTBOX_builtin_class
);
register_builtin
(
&
MDICLIENT_builtin_class
);
register_builtin
(
&
MENU_builtin_class
);
register_builtin
(
&
MESSAGE_builtin_class
);
register_builtin
(
&
SCROLL_builtin_class
);
register_builtin
(
&
STATIC_builtin_class
);
...
...
dlls/user32/controls.h
View file @
c9370c44
...
...
@@ -53,6 +53,7 @@ extern const struct builtin_class_descr ICONTITLE_builtin_class DECLSPEC_HIDDEN;
extern
const
struct
builtin_class_descr
LISTBOX_builtin_class
DECLSPEC_HIDDEN
;
extern
const
struct
builtin_class_descr
MDICLIENT_builtin_class
DECLSPEC_HIDDEN
;
extern
const
struct
builtin_class_descr
MENU_builtin_class
DECLSPEC_HIDDEN
;
extern
const
struct
builtin_class_descr
MESSAGE_builtin_class
DECLSPEC_HIDDEN
;
extern
const
struct
builtin_class_descr
SCROLL_builtin_class
DECLSPEC_HIDDEN
;
extern
const
struct
builtin_class_descr
STATIC_builtin_class
DECLSPEC_HIDDEN
;
...
...
dlls/user32/message.c
View file @
c9370c44
...
...
@@ -89,6 +89,22 @@ 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 */
0
,
/* extra */
IDC_ARROW
,
/* cursor */
0
/* brush */
};
/* flag for messages that contain pointers */
/* 32 messages per entry, messages 0..31 map to bits 0..31 */
...
...
@@ -315,6 +331,19 @@ static inline BOOL get_pending_wmchar( MSG *msg, UINT first, UINT last, BOOL rem
return
TRUE
;
}
/***********************************************************************
* message_winproc
*
* Window procedure for "Message" windows (HWND_MESSAGE parent).
*/
static
LRESULT
WINAPI
message_winproc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
if
(
message
==
WM_NCCREATE
)
return
TRUE
;
return
0
;
/* all other messages are ignored */
}
/***********************************************************************
* broadcast_message_callback
*
...
...
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