Example

//-------------------------------------------------------------------
// ECLWinMetrics::SetRestored
//
// Get current state of window, and then toggle it.
//-------------------------------------------------------------------
void Sample96() {
 
ECLWinMetrics Metrics('A');      // Window metrics class
BOOL  CurrState;
 
CurrState = Metrics.IsRestored();  // Get state
if (!CurrState)
  Metrics.SetRestored();           // Set state
else
  Metrics.SetMinimized();
 
} // end sample
 
//-------------------------------------------------------------------