How to Create a Recessed Status Bar AreaLast reviewed: October 10, 1997Article ID: Q132110  | 
	
	
 
1.00 1.50 1.51 1.52 | 2.00 2.10 4.00
WINDOWS | WINDOWS NT kbuiThe information in this article applies to: 
 SUMMARY To implement a sunken or recessed border around the first pane of the status bar, you need to have SBPS_STRETCH style set for this pane. 
 MORE INFORMATIONThis style can be set immediately after you create the status bar in the CMainFrame::OnCreate handler of your Appwizard-generated application. Add the following call to SetPaneInfo in the CMainFrame::OnCreate handler: 
    int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
   {
   // Code generated by the framework
    m_wndStatusBar.SetPaneInfo( 0, m_wndStatusBar.GetItemID( 0 ),
           SBPS_STRETCH, NULL );
   }
Here m_wndStatusBar is the CStatusBar member variable of the CMainFrame
class, and CStatusBar::GetItemID() returns the ID of the first pane.
NOTE: Only one pane of the status bar can have this style set. 
 REFERENCESFor additional information on this style, please see CStatusBar::SetPaneInfo() in the Foundation Classes Help file. 
  | 
	
	Additional reference words: kbinf 1.00 1.50 2.50 2.51 2.52 2.00 2.10 3.00 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use.  |