BOOL CPPgScheduler::OnInitDialog() { CPropertyPage::OnInitDialog(); InitWindowStyles(this); m_list.SetExtendedStyle(LVS_EX_FULLROWSELECT); m_list.ModifyStyle(LVS_SINGLESEL,0); m_list.InsertColumn(0, GetResString(IDS_TITLE) ,LVCFMT_LEFT,150,0); m_list.InsertColumn(1,GetResString(IDS_S_DAYS),LVCFMT_LEFT,80,1); m_list.InsertColumn(2,GetResString(IDS_STARTTIME),LVCFMT_LEFT,80,2); m_time.SetFormat(_T("H:mm")); m_timeTo.SetFormat(_T("H:mm")); m_actions.SetExtendedStyle(LVS_EX_FULLROWSELECT); m_actions.ModifyStyle(LVS_SINGLESEL,0); m_actions.InsertColumn(0, GetResString(IDS_ACTION) ,LVCFMT_LEFT,150,0); m_actions.InsertColumn(1,GetResString(IDS_VALUE),LVCFMT_LEFT,80,1); Localize(); CheckDlgButton(IDC_ENABLE,thePrefs.IsSchedulerEnabled()); FillScheduleList(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
void CPPgScheduler::OnBnClickedRemove() { int index=m_list.GetSelectionMark(); if (index!=-1) theApp.scheduler->RemoveSchedule(index); FillScheduleList(); theApp.scheduler->RestoreOriginals(); RecheckSchedules(); }
void CPPgScheduler::OnBnClickedRemove() { /*MORPH START leuk_he: Remove 2nd apply in scheduler int index=m_list.GetSelectionMark(); */ int index=miActiveSelection; // MORPH END leuk_he: Remove 2nd apply in scheduler if (index!=-1) theApp.scheduler->RemoveSchedule(index); FillScheduleList(); theApp.scheduler->RestoreOriginals(); RecheckSchedules(); // MORPH START leuk_he: Remove 2nd apply in scheduler miActiveSelection =m_list.GetSelectionMark() ; SetModified(); // MORPH END leuk_he: Remove 2nd apply in scheduler }