INFO: Updating the Application Status Bar on DemandLast reviewed: October 10, 1997Article ID: Q98473 |
The information in this article applies to:
SUMMARYIn 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.
MORE INFORMATION
Sample Code
/* * Compile options needed: None */ void CMainFrame::MyUpdatePane() { m_wndStatusBar.SendMessage(WM_IDLEUPDATECMDUI); m_wndStatusBar.UpdateWindow(); } Keywords : MfcUI kbinfo Technology : kbmfc Version : 1.0 1.5 1.51 1.52 2.0 Platform : NT WINDOWS |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |