Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 


Messenger     See also    

Dispatches incoming messages.


    void DispatchMessages();

    procedure DispatchMessages;

    Sub DispatchMessages()

    HRESULT _stdcall DispatchMessages( void );

    public void DispatchMessages();

    Public Sub DispatchMessages()

    public void DispatchMessages();

[Java ME]
    public synchronized void DispatchMessages();

    long __stdcall IPCMessengerDispatchMessages(HIPCMessenger h);


  • h - handle to the Messenger object that was returned by Create method

Return value

    IPC_OK is always 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.

See also:     Queue class     PeekMessage     GetMessage