| 602 | |
| 603 | // Sets up the dialog before it is displayed |
| 604 | BOOL 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 |
| 642 | void CDallasMainDlg::OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized) { |