slider

BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
 // TODO: Add your specialized code here and/or call the base class
 
 //return CFrameWnd::OnCreateClient(lpcs, pContext);
 

    bCreateSuccess = m_wndHorSplitter.CreateStatic(this, 1, 2);
    if (!bCreateSuccess)
    {
        TRACE0("Failed to Split HorizontalSplitter Window/n");
        return FALSE;
    }

    bCreateSuccess = m_wndVerSplitter.CreateStatic(&m_wndHorSplitter, 2, 1,
        WS_CHILD|WS_VISIBLE, m_wndHorSplitter.IdFromRowCol(0,0));   
    if (!bCreateSuccess)
    {
        TRACE0("Failed to Split VerticalSplitter Window/n");
        return FALSE;
    }

    CRect rcClient;
    GetClientRect(&rcClient);
    int cxRect = rcClient.Width();
    int cyRect = rcClient.Height();

    bCreateSuccess = m_wndVerSplitter.CreateView(1, 0, RUNTIME_CLASS(CTelnetView), CSize(cxRect*1/5,cyRect*1/3), pContext);
    if (!bCreateSuccess)
    {
        TRACE0("Failed to Create TelnetView/n");
        return FALSE;
    }   

    bCreateSuccess = m_wndVerSplitter.CreateView(0, 0, RUNTIME_CLASS(CSetupView), CSize(cxRect*1/5,cyRect*2/3), pContext);
    if (!bCreateSuccess)
    {
        TRACE0("Failed to Create SetupView/n");
        return FALSE;
    }

    bCreateSuccess = m_wndHorSplitter.CreateView(0, 1, RUNTIME_CLASS(CEasyNMView), CSize(cxRect*4/5,cyRect), pContext);
    if (!bCreateSuccess)
    {
        TRACE0("Failed to Create TreeView/n");
        return FALSE;
    }
   
    return TRUE;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值