| 333 | // CObjectListDialog message handlers |
| 334 | |
| 335 | BOOL CObjectListDialog::OnInitDialog() { |
| 336 | CDialog::OnInitDialog(); |
| 337 | |
| 338 | // Generate object tree |
| 339 | // categorize them here. |
| 340 | Refresh(); |
| 341 | |
| 342 | CTreeCtrl *tree = (CTreeCtrl *)GetDlgItem(IDC_OBJTREE); |
| 343 | CWnd *btn1 = GetDlgItem(IDC_GOTO); |
| 344 | CWnd *btn2 = GetDlgItem(IDC_DELETE); |
| 345 | |
| 346 | if (!tree->GetSelectedItem()) { |
| 347 | btn1->EnableWindow(FALSE); |
| 348 | btn2->EnableWindow(FALSE); |
| 349 | } |
| 350 | |
| 351 | return TRUE; // return TRUE unless you set the focus to a control |
| 352 | // EXCEPTION: OCX Property Pages should return FALSE |
| 353 | } |
| 354 | |
| 355 | void CObjectListDialog::OnDestroy() { |
| 356 | CDialog::OnDestroy(); |
nothing calls this directly
no test coverage detected