@pymethod |PyCWinThread|PumpMessages|Pumps all messages to the application until a WM_QUIT message is received.
| 302 | |
| 303 | // @pymethod |PyCWinThread|PumpMessages|Pumps all messages to the application until a WM_QUIT message is received. |
| 304 | static PyObject * |
| 305 | ui_thread_pump_messages(PyObject *self, PyObject *args) |
| 306 | { |
| 307 | if (!PyArg_ParseTuple (args, ":PumpMessages")) |
| 308 | return NULL; |
| 309 | CProtectedWinThread *pThread = GetProtectedThread(); |
| 310 | if (!pThread) return NULL; |
| 311 | GUI_BGN_SAVE; |
| 312 | pThread->PumpMessages(); |
| 313 | GUI_END_SAVE; |
| 314 | RETURN_NONE; |
| 315 | // @comm This allows an application which is performing a long operation to dispatch paint messages during the operation. |
| 316 | } |
| 317 | |
| 318 | |
| 319 | // @object PyCWinThread|An application class. Encapsulates an MFC <c CWinThread> class |
nothing calls this directly
no test coverage detected