MFC + Multithreading / accessing controls

  • Thread starter Thread starter itr_rrauch
  • Start date Start date
I

itr_rrauch

Guest
Hi,

I want to know, if a CWinThread (beside the main GUI thread) is allowed to access Windows or GUI-Controls.

I found many samples, that a CWinThread can handle message inputs, but not any sample, if it is allowed to make GUI outputs concurrenty to the main thread.

I have a MFC based Application, created as Visual Studio Style Project.

This application is performing different communication tasks, so it's normal, that the MainThread is sometimes waiting for timeouts. The communication tasks are performed by Win32 threads without any GUI access...but they are posting messages, e.g. for logging and state information.

At the moment, all this messages are not printed, as long the main GUI thread is waiting for timeout. Can I print out such messages to a pane concurrently from a CWinThread ?

Continue reading...
 
Back
Top