示例
以下示例展示了如何使用 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 );
}