In MFC the UI related operation (Draw paint) can be performed in worked thread?

301 views Asked by At

In MFC the UI related operation (Draw paint) can be performed in worked thread? My problem is as of now the main thread is taking lot of time in drawing the UI related items. But if i can delegate the UI drawing related operation to worked thread section by section the main thread becomes free so that the remaining part of the application which is done with drawing can be used by user. Is this possible?

1

There are 1 answers

4
Andrew Komiagin On BEST ANSWER

You should do the opposite. In general the main application thread should be used for GUI stuff only as it has Windows Message Pump by default. The rest of work should be done in threads.