Exemple

L'exemple suivant montre comment utiliser la méthode SetHeight pour définir la hauteur du rectangle de la fenêtre de connexion.

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 the height
    pWM->SetHeight(6081);
  }
}
catch (ECLErr ErrObj) {
  // Just report the error text in a message box
  MessageBox( NULL, ErrObj.GetMsgText(), "Error!", MB_OK );
}