Курсовая работа: Текстовый редактор

void CEditAppView::Dump(CDumpContext& dc) const

{

CEditView::Dump(dc);

}

CEditAppDoc* CEditAppView::GetDocument() const // non-debug version is inline

{

ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEditAppDoc)));

return (CEditAppDoc*)m_pDocument;

}

#endif //_DEBUG

// CEditAppView message handlers

void CEditAppView::OnSeek()

{

// TODO: Add your command handler code here

CSeekDialog dlg(this);

if( dlg.DoModal() == IDOK){

FindText( dlg.m_Sample);

}

}

КлассCEditAppView управляетпечатьюдокументовспомощьюфункций OnPreparePrinting(), OnBeginPrinting(),OnEndPrinting(). Выделенный полужирным шрифтом тектс отвечает за поиск слов в тексте.

К-во Просмотров: 568
Бесплатно скачать Курсовая работа: Текстовый редактор