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

Method OnInitDialog

editor/DallasMainDlg.cpp:604–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602
603// Sets up the dialog before it is displayed
604BOOL CDallasMainDlg::OnInitDialog() {
605 CDialog::OnInitDialog();
606
607 // CString msg;
608 // msg.Format("Starting ID: %d\nEnding ID: %d",STARTING_COMMAND_ID,DELETE_COMMAND_RANGE_END);
609 // MessageBox(msg,"Used ID Range",MB_OK);
610
611 // Setup the tree image list
612 CBitmap bm;
613
614 m_TreeImageList.Create(16, 16, 0, 19, 0);
615
616 bm.LoadBitmap(IDB_DALLAS_TREE_ICONS_BITMAP);
617 m_TreeImageList.Add(&bm, &bm);
618 m_ScriptTree.SetImageList(&m_TreeImageList, TVSIL_NORMAL);
619
620 // Setup the Message List GUI and data
621 m_MessageEdit.SetLimitText(MAX_MESSAGE_LEN);
622
623 // Make sure everything is cleared out, then load in everything
624 Refresh();
625 Compiling = FALSE;
626
627 // m_ScriptOwnerType=LEVEL_TYPE;
628 // m_ScriptOwnerHandle=0;
629 // PostMessage(WM_ADD_SCRIPT_AND_HIGHLIGHT);
630
631 // Set the highlighting to none
632 ClearHighlightRadioButtons();
633 ((CButton *)GetDlgItem(IDC_NONE_RADIO))->SetCheck(1);
634 OnNoneRadio();
635 FillHighlightEventList();
636
637 return TRUE; // return TRUE unless you set the focus to a control
638 // EXCEPTION: OCX Property Pages should return FALSE
639}
640
641// Gets called whenever Dallas is activated, allows for validating of script values
642void CDallasMainDlg::OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized) {

Callers

nothing calls this directly

Calls 3

SetCheckMethod · 0.80
CreateMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected