MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnInitDialog

Method OnInitDialog

editor/ObjectListDialog.cpp:335–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333// CObjectListDialog message handlers
334
335BOOL 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
355void CObjectListDialog::OnDestroy() {
356 CDialog::OnDestroy();

Callers

nothing calls this directly

Calls 2

GetSelectedItemMethod · 0.45
DestroyWindowMethod · 0.45

Tested by

no test coverage detected