void COleServerItem::OnHide() { ASSERT_VALID(this); // default implementation hides the document COleServerDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); pDoc->OnShowDocument(FALSE); }
void COleServerItem::OnOpen() { ASSERT_VALID(this); // default implementation shows the document COleServerDoc* pDoc = GetDocument(); ASSERT(pDoc != NULL); pDoc->OnShowDocument(TRUE); }