none
VS2010停靠窗体,内存冲突 RRS feed

  • 问题

  • 我在vs2010生成的MFC 框架中使用停靠窗体时总是发生内存冲突,请问一下啊大家有什么解决方法吗?

      m_wndTreatView.EnableDocking(CBRS_ALIGN_ANY);
    m_wndDiagnosisView.EnableDocking(CBRS_ALIGN_ANY);	
    m_wndManagementView.EnableDocking(CBRS_ALIGN_ANY);
    m_wndReturnVisitView.EnableDocking(CBRS_ALIGN_ANY); 
    m_wndEmergencyView.EnableDocking(CBRS_ALIGN_ANY);
    //以上是几个停靠窗体
    
    
    	DockPane(&m_wndDiagnosisView);
    
    	CDockablePane* pTabbedBar = NULL;
        m_wndTreatView.AttachToTabWnd(&m_wndDiagnosisView, DM_SHOW, TRUE, &pTabbedBar);
    
    	CDockablePane* pTabbedBar1 = NULL;
    	m_wndManagementView.AttachToTabWnd(&m_wndDiagnosisView, DM_SHOW, TRUE, &pTabbedBar1);
    
    
    	CDockablePane* pTabbedBar2 = NULL;
    	m_wndReturnVisitView.AttachToTabWnd(&m_wndDiagnosisView, DM_SHOW, TRUE, &pTabbedBar2);
    
    
    	CDockablePane* pTabbedBar3 = NULL;
    	m_wndEmergencyView.AttachToTabWnd(&m_wndDiagnosisView, DM_SHOW, TRUE, &pTabbedBar3);
    
    
    	m_wndOutput.EnableDocking(CBRS_ALIGN_ANY);
    	DockPane(&m_wndOutput);
    
    	m_wndPatientQueue.EnableDocking(CBRS_ALIGN_ANY);
    	DockPane(&m_wndPatientQueue);
    

    2012年8月31日 12:48

全部回复