例
以下の例は、SetHeight メソッドを使用して接続ウィンドウ長方形の 高さを設定する方法を示します。
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 );
}