Messenger.DispatchMessages
Dispatches incoming messages.
[C++]
void DispatchMessages();
[Pascal]
procedure DispatchMessages;
[VB6]
Sub DispatchMessages()
[ActiveX]
HRESULT _stdcall DispatchMessages( void );
[C#]
public void DispatchMessages();
[VB.NET]
Public Sub DispatchMessages()
[Java]
public void DispatchMessages();
[Java ME]
public synchronized void DispatchMessages();
[Palm]
void DispatchMessages(void);
[DLL]
long __stdcall MCMessengerDispatchMessages(HMCMessenger h);
- h - handle to the Messenger object that was returned by Create method
[DLL]
If the function was called not from the same thread in which Messenger operates, MCE_WRONGTHREAD code is returned, otherwise MC_OK is returned.
Call this method from time to time to dispatch incoming messages. When the messages are dispatched, the recipient Queue class objects are searched for and, if found, their methods are used to find proper message handlers and invoke application code.
Before passing the incoming messages to message handlers, DispatchMessages cleans outgoing message queues (removes expired messages) and processes message replies. This includes setting flags for pending SendMessage functions and calling callbacks set by SendMessageCallback functions.
|