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 » CProfStudioThinFrame problem Collapse All
Subject Author Date
Vincent Lin Apr 17, 2007 - 7:22 PM

Dear Support Team,

I modify your sample project "ProfStudio" to add a dialog with scrollbar. but the scrollbar don’t appear. the added code as below, what is wrong ?

// m_wnd_CM_FLOW_Child is a dialog derived from CExtResizableDialog
// m_wndCMBar is a CExtControlBar object


    if(    !m_wndCMBar.Create(
                _T("CM FLOW"),
                this,
                ID_CM_WINDOW_BAR
                )
        || !m_wnd_CM_FLOW_Child.Create(
                CCM_FLOW::IDD,
                &m_wndCMBar
                )
        )
    {
        TRACE0("Failed to create ID_VIEW_BAR_RESOURCE_VIEW\n");
        return -1; // fail to create
    }
CProfStudioThinFrame * pWndThinFrame2 = new CProfStudioThinFrame;
    if( !pWndThinFrame2->CreateDynamicThinFrame(&m_wnd_CM_FLOW_Child) )
    {
        TRACE0("Failed to create thin frame for ID_VIEW_BAR_RESOURCE_VIEW\n");
        return -1; // fail to create
    }

    m_wnd_CM_FLOW_Child.ShowWindow( SW_NORMAL );

Technical Support Apr 18, 2007 - 9:21 AM

Please remove m_wnd_CM_FLOW_Child.ShowWindow( SW_NORMAL ); and set the Visible, Horizontal Scrollbar and Vertical Scrollbar properties of the dialog template resource to true.

Additionally please note that the scrolling in not provide in dialogs as in form views. The following sample demonstrates how to implement the scrollable dialog container with skinned scrollbars and dialog anchoring mechanism.