|
OnWindowidEvent_MessageNotification
The OnWindowidEvent_MessageNotification event is
fired when a message is sent to the window. Message notifications
are only generated for messages specified during a call to RegisterMessageNotification.
This event is generated before the message is actually sent to the
window or processed by Messenger Plus!.
Syntax
[number] OnWindowidEvent_MessageNotification(
[object] PlusWnd,
[number] Message,
[number] wParam,
[number] lParam
);
Parameters
- PlusWnd
- [object] The PlusWnd object attached to the window
that generated the event.
- Message
- [number] Identifier of the message being received by the
window. Check out the MSDN Library and the Platform SDK include
files for more details.
- wParam
- [number] First parameter (wParam) sent with the message.
This is generally a number, a pointer to a string or a pointer to
some raw data.
- lParam
- [number] Second parameter (lParam) sent with the message.
This is generally a number, a pointer to a string or a pointer to
some raw data.
Return Value
Messenger Plus! has two ways to interpret the return value. If
the value is -1, the message is
processed by the window normally, as if the script notification
never occurred. If the value is anything but -1, it is used as the return value for the message
and the default processing for the message is skipped.
Remarks
In case of doubt, always return -1
to make sure the message is properly received and interpreted by
the window. Preventing standard system messages (like WM_PAINT) to be processed by the window can have
disastrous effects.
Event Information
| Event Source |
Interface Windows |
| Availability |
Messenger Plus! Live 4.10 |
See Also
Script Windows Events, PlusWnd Object, RegisterMessageNotification.
|