Skip to content

Latest commit

 

History

History
92 lines (46 loc) · 1.96 KB

PyCWinThread.md

File metadata and controls

92 lines (46 loc) · 1.96 KB

PyCWinThread

PyCWinThread Object

An application class. Encapsulates an MFC CWinThread

class

Methods

  • CreateThread

    Creates the actual thread behind the thread object. 

  • PumpIdle

    Pumps idle messages. 

  • PumpMessages

    Pumps all messages to the application until a WM_QUIT message is received. 

  • Run

    Starts the main application message pump. 

  • SetMainFrame

    Sets the C++ applications main frame 

  • SetThreadPriority

    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.

Comments

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

int = Run() Starts the message pump. Advanced users only

PyCWinThread.SetMainFrame

SetMainFrame(mainFrame) Sets the threads main frame

Parameters

  • mainFrame : PyCWnd

    The applications main frame.

Comments

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.

Parameters

  • priority : PyCWnd

    The threads priority.