INFO: Background Processing in an MFC Application (99999)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Professional Edition
- Microsoft Visual C++, 32-bit Enterprise Edition
- Microsoft Visual C++, 32-bit Learning Edition
This article was previously published under Q99999 SUMMARY
Many applications perform lengthy processing "in the background" during
intervals when the user is not otherwise interacting with the application.
In an application developed for the Microsoft Windows operating system, an
application can perform background processing by splitting a lengthy
process into many small fragments. After processing each fragment, the
application yields execution control to Windows using a PeekMessage() loop.
An application developed with the Microsoft Foundation Class Library
can perform background processing either by using the PeekMessage()
loop in the library code's main message loop or by embedding another
PeekMessage() loop in the application.
NOTE: The remainder of this article, namely the sample code, is specific to
Visual C++ for Windows and Visual C++ 32-bit Edition, version 2.x. For
Visual C++ 32-bit Edition, version 4.0, please refer to the Frequently
Asked Question (FAQ) about MFC "Background Processing in an MFC
Application" in the Visual C++ 4.0 Books Online.
Modification Type: | Major | Last Reviewed: | 12/8/2003 |
---|
Keywords: | kbinfo KB99999 |
---|
|