This documentation is archived and is not being maintained.


Contains the thread's message loop.

virtual BOOL PumpMessage( );

If the function retrieved a message other than WM_QUIT, the return value is nonzero.

If the function retrieved the WM_QUIT message, the return value is zero.

PumpMessage contains the thread's message loop. PumpMessage is called by CWinThread to pump the thread's messages. You can call PumpMessage directly to force messages to be processed, or you can override PumpMessage to change its default behavior.

Calling PumpMessage directly and overriding its default behavior is recommended for advanced users only.

Header: afxwin.h