Home > Software engineering > Great god give directions of MFC using threads, optimization program
Great god give directions of MFC using threads, optimization program
Time:12-23
I have a lot of control need to refresh the MFC interface, and very frequently, causing the program card, want to use a thread to optimize interface, As shown in figure 1, it is my part of the interface, figure 2 is a serial port receives the data, the interface of figure 3 is a serial port data parsing, refresh is similar to a figure 3 a function Void CTestselfDlg: : DlgAutoCheck (BYTE * ReceiveData, bool reset) I want to use a thread to handle data and interface, but try many way to also have no implementation, online seek advice!!!!!!
CodePudding user response:
First of all, you should be receiving serial data in the thread, do not use the mscomm control, to switch to other serial port, processed need to refresh the thread, the sending messages to the window refresh, The main window frequent refresh these controls should be no pressure,