本文整理汇总了C++中COleClientItem::Deactivate方法的典型用法代码示例。如果您正苦于以下问题:C++ COleClientItem::Deactivate方法的具体用法?C++ COleClientItem::Deactivate怎么用?C++ COleClientItem::Deactivate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COleClientItem
的用法示例。
在下文中一共展示了COleClientItem::Deactivate方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnDestroy
void Clinenum_testView::OnDestroy()
{
// 析构时停用此项;这在
// 使用拆分视图时非常重要
COleClientItem* pActiveItem = GetDocument()->GetInPlaceActiveItem(this);
if (pActiveItem != NULL && pActiveItem->GetActiveView() == this)
{
pActiveItem->Deactivate();
ASSERT(GetDocument()->GetInPlaceActiveItem(this) == NULL);
}
CRichEditView::OnDestroy();
}
示例2: OnDestroy
void CMyExplorerView::OnDestroy()
{
// Deactivate the item on destruction; this is important
// when a splitter view is being used.
CListView::OnDestroy();
COleClientItem* pActiveItem = GetDocument()->GetInPlaceActiveItem(this);
if (pActiveItem != NULL && pActiveItem->GetActiveView() == this)
{
pActiveItem->Deactivate();
ASSERT(GetDocument()->GetInPlaceActiveItem(this) == NULL);
}
}
示例3: OnDestroy
void CCodeHighLightView::OnDestroy()
{
// 停用处于析构中的项;这在
// 使用拆分器视图时非常重要
COleClientItem* pActiveItem = GetDocument()->GetInPlaceActiveItem(this);
if (pActiveItem != NULL && pActiveItem->GetActiveView() == this)
{
pActiveItem->Deactivate();
ASSERT(GetDocument()->GetInPlaceActiveItem(this) == NULL);
}
CSynEditView::OnDestroy();
}
示例4: GetDocument
void CBCGPMSOffice2007DemoView::OnDestroy()
{
// Deactivate the item on destruction; this is important
// when a splitter view is being used.
COleClientItem* pActiveItem = GetDocument()->GetInPlaceActiveItem(this);
if (pActiveItem != NULL && pActiveItem->GetActiveView() == this)
{
pActiveItem->Deactivate();
ASSERT(GetDocument()->GetInPlaceActiveItem(this) == NULL);
}
CRichEditView::OnDestroy();
}
示例5: PreCloseFrame
void COleDocument::PreCloseFrame(CFrameWnd* pFrameArg)
{
ASSERT_VALID(this);
ASSERT_VALID(pFrameArg);
// deactivate any inplace active items on this frame
COleClientItem* pItem = GetInPlaceActiveItem(pFrameArg);
if (pItem != NULL)
{
pItem->Deactivate();
pItem->Close(OLECLOSE_NOSAVE);
}
// should not have any inplace active items
ASSERT(GetInPlaceActiveItem(pFrameArg) == NULL);
}
示例6: OnClose
//***************************************************************************************
void CBCGPFrameWnd::OnClose()
{
if (m_pPrintPreviewFrame != NULL)
{
m_pPrintPreviewFrame->SendMessage (WM_COMMAND, AFX_ID_PREVIEW_CLOSE);
m_pPrintPreviewFrame = NULL;
return;
}
if (!m_Impl.IsPrintPreview ())
{
m_bClosing = TRUE;
}
// Deactivate OLE container first:
COleClientItem* pActiveItem = GetInPlaceActiveItem ();
if (pActiveItem != NULL)
{
pActiveItem->Deactivate ();
}
m_Impl.OnCloseFrame();
CFrameWnd::OnClose();
}