void COutputCOMEditorDoc::ShowWindow()
{
POSITION pos=GetFirstViewPosition();
CView* pView=GetNextView(pos);
if(pView!=NULL)
{
CFrameWnd* pFrameWnd=pView->GetParentFrame();
pFrameWnd->ActivateFrame(SW_SHOW);
pFrameWnd=pFrameWnd->GetParentFrame();
if( pFrameWnd!=NULL )
pFrameWnd->ActivateFrame(SW_SHOW);
}
}
void COutputCOMEditorDoc::AddText(LPCTSTR text)
{
POSITION pos=GetFirstViewPosition();
CView* pView=GetNextView(pos);
if(pView!=NULL)
{
ASSERT(pView->IsKindOf(RUNTIME_CLASS(CEditView)));
CEditOutputStream os((CEdit *)pView);
os<<text;
}
SetModifiedFlag(TRUE);
}