Multithreading & Doc-View - Urgent!
Posted on 2000-03-23
I'm writing a MDI application and I want to put each pair of Doc-View rinning in a separate thread.
The reason is that each view-doc receives really heavy stream of messages and is busy processing. The menu and other view-doc have to wait for the completion of the work this view-doc is doing. And I want each pair of view-doc doing almost the same heavy work simultaneously. I’m currently experimenting with CWinThread, but with no success yet.
Does anyone know how to do this?
Thanks in advance!
The view is used for displaying info (CEditView). A high priority thread gathers this info. This thread sends very intensively Windows messages to notify view for the incoming info, so while the view is displaying this info(, this really takes a lot of time), the app user interface is not available. Not to mention what happens when I create several doc-view instances, each receiving a lot of messages from a separate working thread.