Exemple #1
0
void CWorkgroupDocument::ShowView()
{
#if 0
	{
		CComObject<CUIMDIChild>* child;
		CComObject<CUIMDIChild>::CreateInstance(&child);
		child->AddRef();
		gApp->m_frame->QueryInterface(IID_IUnknown, (void**)&child->m_spFrame);

		{
			CComObject<CWorkgroupFilesView>* view;
			CComObject<CWorkgroupFilesView>::CreateInstance(&view);
			if (view)
			{
				gApp->m_frame->FindMenu(_Module.GetResourceInstance(), IDR_WORKGROUPFILESVIEW, &view->m_menu);
				view->m_document = this;
				child->AddPage(view, NULL);
			}
		}

		ATLASSERT(0);
	//	child->CreateEx(gApp->m_frame, gApp->m_frame->m_hWndClient);
		child->SetWindowText(_T("Workgroup"));
	}
#endif
}
Exemple #2
0
void CEScriptDocument::NewWindow(IEFrame* eframe)
{
#if 0
	CComQIPtr<ILXAddin> addin = m_app;
	CComPtr<ILXAddinSite> addinSite;
	addin->GetSite(&addinSite);

	CComPtr<IUIManager> uiManager;
	addinSite->GetUIManager((IUnknown**)&uiManager);

//	CComQIPtr<IUIManager> uiManager = gApp->m_frame;

	CComQIPtr<IUIMDIFrame> mdiframe = eframe;

	CComObject<CScriptSourceView>* textView;
	CComObject<CScriptSourceView>::CreateInstance(&textView);
	if (textView)
	{
		ATLASSERT(0);
#if 0
		uiManager->FindMenu(_Module.GetResourceInstance(), IDR_TEXTVIEW, &textView->m_menu);

		textView->m_document = this;

		CComPtr<IUIMDIChild> childFrame;
		mdiframe->CreateChildFrame(textView, &childFrame);
#endif
	}

#if 0
//	CComQIPtr<IUIManager> uiManager = gApp->m_uiManager;

	{
		CComObject<CUIMDIChild>* child;
		CComObject<CUIMDIChild>::CreateInstance(&child);
		child->AddRef();

	//	CComQIPtr<IEDocument> webdoc;
	//	QueryInterface(IID_IEDocument, (void**)&webdoc);

		{
		// Source
			CComObject<CSourceView>* sourceView;
			CComObject<CSourceView>::CreateInstance(&sourceView);
			sourceView->m_document = this;
			child->AddPage(sourceView, NULL);
		}

		child->CreateEx(gApp->m_frame, gApp->m_frame->m_hWndClient);
	}
#endif
#endif
}