MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / Clear

Method Clear

ReClass/CProgressBar.cpp:110–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void 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
134BOOL CProgressBar::SetText( LPCTSTR strMessage )
135{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected