Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CFormView and CExtControlBar Collapse All
Subject Author Date
Olga Burlakova Nov 19, 2004 - 1:11 AM

Hello.

I have some trouble with CExtControlBar.

I create a two MDI Projects using Prof-UIS 2.25.1, I used (Prof-UIS ) App wizard for this.
All option for each project I leave by default.
At One app I used a CView as base class for View and CFormView at another.
I created Resizable Bar at each application at Child window (CChildFrame).

// CChildFrame message handlers

int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
        return -1;

    
    
    if(    !m_wndResizableBar.Create(
            _T("Bar1"),
            this,
            ID_VIEW_CHILDFRAME_BAR_FILTER
            )
            
        )
    {
        TRACE0("Failed to create Bar1\n");
        return -1;        // fail to create
    }

    if( !m_wndInBarDlg.Create(
            IDD_IN_BAR_DLG_DOC,
            &m_wndResizableBar
            )
        )
    {
        TRACE0("Failed to create m_wndInBarDlg\n");
        return -1;        // fail to create
    }


    m_wndInBarDlg.ShowSizeGrip( FALSE );
        
    

    if( !CExtControlBar::FrameEnableDocking(this) )
    {
        ASSERT( FALSE );
        return -1;
    }

#if (!defined __EXT_MFC_NO_TAB_CONTROLBARS)
    if( !CExtControlBar::FrameInjectAutoHideAreas(this) )
    {
        ASSERT( FALSE );
        return -1;
    }
#endif // (!defined __EXT_MFC_NO_TAB_CONTROLBARS)

    m_wndResizableBar.EnableDocking(CBRS_ALIGN_ANY);
    m_wndResizableBar.DockControlBar( AFX_IDW_DOCKBAR_LEFT, 1,this,false );
return 0;
}


The problem consists in following: in the second application arise problem with representation
of Resizable Bar. After the panel was latent. I move the cursor to the Bar area, but Bar does not leave back.
In the First Application all works perfectly.

Technical Support Nov 22, 2004 - 1:45 AM

Dear Olga,

Could you send us a test application which demonstrates this problem. That will help us quickly clarify the issue and find out what’s wrong with your application.