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 General Discussion » How to program splitwindow base application? Collapse All
Subject Author Date
Kim Sung Won Oct 20, 2006 - 12:36 PM

I use trial version and programming split window application.
Left view is tree control, Right view is grids.
but view covers toolbar, so toolbars is not show

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
    // TODO:
    if (!m_wndSplitter.CreateStatic(this, 1, 2))
        return FALSE;

    if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CLeft), CSize(500,0), pContext))
        return FALSE;

    if (!m_wndSplitter.CreateView(0, 1, RUNTIME_CLASS(CRight), CSize(500,0), pContext))
        return FALSE;

    return TRUE;
    //return CExtNCW<CFrameWnd>::OnCreateClient(lpcs, pContext);
}

Please, Send me PageNavigator sample application or other split window application source.

Kim Sung Won Oct 21, 2006 - 1:51 AM

sorry. I’m using freeware version.

Technical Support Oct 23, 2006 - 10:07 AM

Prof-UIS Trial includes the source code of all the sample applications including PageNavigator sample. Please take a look at the CMainFrame::OnCreateClient() method in this sample to see how the splitter window can be created.