The MFC program written a few days ago, the progress bar will not respond when the program is running to deal with large tasks. It will be updated again only at the end of processing, and it will be directly updated to the full status of the progress bar, which is very unpleasant. Today, running MFC program again, I really can’t stand this situation. It’s very easy to find information on the Internet and get a solution.
reference resources http://blog.csdn.net/thinkhy/article/details/5777856
MSG msg;
while(PeekMessage(& msg,NULL,0,0,PM_ REMOVE))
{
TranslateMessage(& msg);
DispatchMessage(& msg);
}
The problem can be solved by adding the above code before the program loop processing task, and the progress bar can be updated continuously. As for the inherent principle of the solution, there is probably an understanding about MFC message circulation and message pump.
Read More:
- Python program uses OS. System () method to call exe program, resulting in no response of main program process
- Vs2013 error msb8031 solution today ran a MFC program, found that the error: error msb8031: building an MFC project for a non-U
- The solution of flicker and no refresh caused by OpenGL + MFC
- Error 1500. Another program is in progress. You must complete another installation before continuing with this installation.
- Solution of OpenGL window flicker in MFC framework
- Windows solution enabled visdom.server Slow and blank blue screen (no navigation bar)
- Solution of flash screen caused by OpenGL in MFC environment
- MFC flash screen solution
- “Operation now in progress” appears when mounting CIFS
- Solution to page scroll bar failure caused by opening secondary spring frame in Ant Design modal form
- Idea pop-up window out of memory, modify the parameters and start the no response solution
- Another installation is in progress… “Or error code 0-1018
- AttributeError:‘AxesSubplot’object has no attribute‘bar_label’
- Error: the solution of “241” and “343” in program
- Solution to stray’\357′ in program when gcc is compiled
- The perfect solution of VS2010 console program running in a flash
- A solution to the problem of “straight ‘\ 357’ in program” when compiling GCC
- Oracle database file is damaged, Error:ORA-01033 :ORACLE initialization or shutdown in progress
- Error in pyinstall package Python program: jinja2.exceptions.templatenotfound: Chart_ Solution to component.html
- Samba mount error (115): operation now in progress refer to the mount.cifs (8) manual page (e.g. ma