newntui/discovermdi/src/ipframe.cpp
// OnCreateControlBars is called by the framework to create control bars on the
//  container application's windows.  pWndFrame is the top level frame window of
//  the container and is always non-NULL.  pWndDoc is the doc level frame window
//  and will be NULL when the container is an SDI application.  A server
//  application can place MFC control bars on either window.
OnCreateControlBars is called by the framework to create control bars on the
container application's windows.  pWndFrame is the top level frame window of
the container and is always non-NULL.  pWndDoc is the doc level frame window
and will be NULL when the container is an SDI application.  A server
application can place MFC control bars on either window.
OnCreateControlBars is called by the framework to create control bars on the container application ' s windows . pWndFrame is the top level frame window of the container and is always non - NULL . pWndDoc is the doc level frame window and will be NULL when the container is an SDI application . A server application can place MFC control bars on either window .
BOOL CInPlaceFrame::OnCreateControlBars(CFrameWnd* pWndFrame, CFrameWnd* pWndDoc)
{
	UNREFERENCED_PARAMETER(pWndDoc);
	return TRUE;
}
BOOL CInPlaceFrame :: OnCreateControlBars ( CFrameWnd * pWndFrame , CFrameWnd * pWndDoc ) { UNREFERENCED_PARAMETER ( pWndDoc ) ; return TRUE ; }
OnCreateControlBars is called by the framework to create control bars on the
container application's windows.
OnCreateControlBars is called by the framework to create control bars on the container application ' s windows .
// Remove this if you use pWndDoc // Set owner to this window, so messages are delivered to correct app //m_wndToolBar.SetOwner(this); //m_Browser.SetOwner(this); // Create toolbar on client's frame window /*	if (!m_wndToolBar.Create(pWndFrame) ||
		!m_wndToolBar.LoadToolBar(IDR_DISCOVTYPE_SRVR_IP))
	{
		TRACE0("Failed to create toolbar\n");
		return FALSE;
	}*/ /*if (!m_Browser.Create(pWndFrame, IDD_COMMONVIEW,
		CBRS_TOOLTIPS|CBRS_FLYBY|CBRS_SIZE_DYNAMIC, IDD_COMMONVIEW))
	{
		TRACE0("Failed to create toolbar\n");
		return FALSE;
	}*/ // TODO: Remove this if you don't want tool tips or a resizeable toolbar /*	m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() |
		CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);*/ /*m_Browser.SetBarStyle(m_wndToolBar.GetBarStyle() |
		CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);*/ // TODO: Delete these three lines if you don't want the toolbar to //  be dockable //m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY); //m_Browser.EnableDocking(CBRS_ALIGN_ANY); //pWndFrame->EnableDocking(CBRS_ALIGN_ANY); //pWndFrame->DockControlBar(&m_wndToolBar); //pWndFrame->DockControlBar(&m_Browser);