当前位置: 首页>>代码示例>>C++>>正文


C++ COleClientItem::Deactivate方法代码示例

本文整理汇总了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();
}
开发者ID:DLive,项目名称:richEditLinenum_test,代码行数:12,代码来源:linenum_testView.cpp

示例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);
   }
}
开发者ID:gawallsibya,项目名称:BIT_MFC-CShap-DotNet,代码行数:12,代码来源:MyExplorerView.cpp

示例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();
}
开发者ID:daiwx,项目名称:UltraDemo,代码行数:12,代码来源:CodeHighLightView.cpp

示例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();
}
开发者ID:zxlooong,项目名称:bcgexp,代码行数:13,代码来源:BCGPMSOffice2007DemoView.cpp

示例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);
}
开发者ID:jbeaurain,项目名称:omaha_vs2010,代码行数:16,代码来源:oledoc1.cpp

示例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();
}
开发者ID:cugxiangzhenwei,项目名称:WorkPlatForm,代码行数:25,代码来源:BCGPFrameWnd.cpp


注:本文中的COleClientItem::Deactivate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。