An application class. Encapsulates an MFC CWinThread
class
-
Creates the actual thread behind the thread object.
-
Pumps idle messages.
-
Pumps all messages to the application until a WM_QUIT message is received.
-
Starts the main application message pump.
-
Sets the C++ applications main frame
-
Sets the threads priority
PyCWinThread.CreateThread
CreateThread() Creates the actual thread behind the thread object.
PyCWinThread.PumpIdle
PumpIdle() Pumps all idle messages.
PyCWinThread.PumpMessages
PumpMessages() Pumps all messages to the application until a WM_QUIT message is received.
This allows an application which is performing a long operation to dispatch paint messages during the operation.
PyCWinThread.Run
int = Run() Starts the message pump. Advanced users only
PyCWinThread.SetMainFrame
SetMainFrame(mainFrame) Sets the threads main frame
-
mainFrame : PyCWnd
The applications main frame.
You can pass None to this function to reset the main frame.
Should I free this? I dont think so!
PyCWinThread.SetThreadPriority
SetThreadPriority(priority) Sets the threads priority. Returns TRUE if successful.
-
priority : PyCWnd
The threads priority.