win32ui.PumpWaitingMessages

int = PumpWaitingMessages(firstMessage, lastMessage )

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

Parameters

firstMessage=WM_PAINT : int

The lowest message ID to retrieve

lastMessage=WM_PAINT : int

The highest message ID to retrieve

Comments

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.