int = PumpWaitingMessages(firstMessage, lastMessage )

Recursively start a new message dispatching loop while any message remain in the queue.


firstMessage=WM_PAINT : int

The lowest message ID to retrieve

lastMessage=WM_PAINT : int

The highest message ID to retrieve


This allows an application which is performing a long operation to dispatch paint messages during the operation.

Return Value

The result is 1 if a WM_QUIT message was processed, otherwise 0.