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!.
[number] OnWindowidEvent_MessageNotification( [object] PlusWnd, [number] Message, [number] wParam, [number] lParam );
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.
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 Source | Interface Windows |
---|---|
Availability | Messenger Plus! Live 4.10 |
Script Windows Events, PlusWnd Object, RegisterMessageNotification.