INFO: Updating the Application Status Bar on Demand (98473)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 1.0
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
This article was previously published under Q98473 SUMMARY
In an application developed with the Microsoft Foundation Classes
(MFC), by default a status bar updates its panes only during idle
processing.
An application can force a status bar to update its panes immediately
by implementing an alternative to the idle processing mechanism. The
application sends an update message to the status bar and then
instructs the status bar to redraw its window. To update the status
bar, send the WM_IDLEUPDATECMDUI message, discussed in MFC Tech Note
#24, to the status bar then call the UpdateWindow() function. The
sample code below demonstrates the member function to add to the
CMainFrame window class.
Modification Type: | Major | Last Reviewed: | 12/11/2003 |
---|
Keywords: | kbinfo kbMFCCtrlBar kbStatBar KbUIDesign KB98473 |
---|
|