Example
The following is an example of the SetActive method.
ECLWinMetrics *pWM;
ECLConnList ConnList();
// Create using connection handle of first connection in the list of
// active connections
try {
if ( ConnList.Count() != 0 ) {
pWM = new ECLWinMetrics(ConnList.GetFirstSession()->GetHandle());
// Set to inactive if active
if ( pWM->Active() )
pWM->SetActive(FALSE);
}
}
catch (ECLErr ErrObj) {
// Just report the error text in a message box
MessageBox( NULL, ErrObj.GetMsgText(), "Error!", MB_OK );
}