//-------------------------------------------------------------------
// ECLWinMetrics::GetWindowTitle
//
// Display current window title of connection A.
//-------------------------------------------------------------------
void Sample79() {
ECLWinMetrics *Metrics; // Ptr to object
try {
Metrics = new ECLWinMetrics('A'); // Create for connection A
printf("Title of connection A is: %s\n",
Metrics->GetWindowTitle());
delete Metrics;
}
catch (ECLErr Err) {
printf("ECL Error: %s\n", Err.GetMsgText());
}
} // end sample