| 108 | } |
| 109 | |
| 110 | void CProgressBar::Clear( ) |
| 111 | { |
| 112 | if (!IsWindow( GetSafeHwnd( ) )) |
| 113 | return; |
| 114 | |
| 115 | // Hide the window. This is necessary so that a cleared |
| 116 | // window is not redrawn if "Resize" is called |
| 117 | ModifyStyle( WS_VISIBLE, 0 ); |
| 118 | |
| 119 | CString str; |
| 120 | if (m_nPane == 0) |
| 121 | str.LoadString( AFX_IDS_IDLEMESSAGE ); // Get the IDLE_MESSAGE |
| 122 | else |
| 123 | str = m_strPrevText; // Restore previous text |
| 124 | |
| 125 | // Place the IDLE_MESSAGE in the status bar |
| 126 | CStatusBar *pStatusBar = GetStatusBar( ); |
| 127 | if (pStatusBar) |
| 128 | { |
| 129 | pStatusBar->SetPaneText( m_nPane, str ); |
| 130 | pStatusBar->UpdateWindow( ); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | BOOL CProgressBar::SetText( LPCTSTR strMessage ) |
| 135 | { |
nothing calls this directly
no outgoing calls
no test coverage detected