Home > Software engineering >  VC how to use the subprocess achieve similar CListCtrl???????
VC how to use the subprocess achieve similar CListCtrl???????

Time:10-17

Consult everybody under the great god of VC how to implement similar CListCtrl with child thread!!!!!! [/color] this problem bothering me for a long time, have to understand to communicate together, the TKS

CodePudding user response:

What birdcall threads similar CListCtrl, you mean in the child thread processing CListCtrl object?
Or you want to write a CListCtrl similar control?

CodePudding user response:

You need to create the UI thread and can be used in MFC controls

CodePudding user response:

Thank you for your reply, I just want to own similar threads are used to draw a CListCtrl controls, but I have to check the official BBS said Microsoft gdi drawing does not support multithreading,

CodePudding user response:

@ 2 floor, yes, to create the UI thread to use MFC controls drawing can't occupy the main thread of the CPU???????

CodePudding user response:

Multiple Threads in the User Interface of http://msdn.microsoft.com/zh-cn/library/ms810439.aspx

CodePudding user response:

Thank you zhao four teacher gives advice, visit the MSDN so long, today finally received zhao four teachers personally to advice the in the mind very excited! Small I met the current problem is the main thread every 10 milliseconds must do drawing response, when I received some kind of business to the application of the CListCtrl inserting a row or update the data, make the main thread can't timely in the next 10 milliseconds drawing, what good method can solve the problem, "create the UI thread and can be used in MFC controls" I was, in the implementation of this method is not the result,

CodePudding user response:

@ oyljerry thank you for your resume, can you give a simple demo, I seem to not display interface,

CodePudding user response:

refer to 6th floor zhaoshan313 response:
thank you very much zhao four teacher gives advice, visit the MSDN so long, today finally received zhao four teachers personally to advice the in the mind very excited! Small I met the current problem is the main thread every 10 milliseconds must do drawing response, when I received some kind of business to the application of the CListCtrl inserting a row or update the data, make the main thread can't timely in the next 10 milliseconds drawing, what good method can solve the problem, "create the UI thread and can be used in MFC controls" I was, in the implementation of this method is not the result,

However, the key is this but: Windows material 15 millisecond timing precision,
Remind: the human eye can only distinguish about 60 frames per second of animation, film standard is 24 frames per second,

CodePudding user response:

Line, draw text, a similar form?
  • Related