Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - BUG: CXTPSplitterWnd - can't move splitter!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: CXTPSplitterWnd - can't move splitter!

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: BUG: CXTPSplitterWnd - can't move splitter!
    Posted: 20 January 2012 at 9:07am
Hi;

I found a bug that can be reproduced with the SplitterWindow sample of the toolkit. To reproduce add another CXTPSplitterWnd to CMainFrame class and then modify the CMainFrame::OnCreateClient() function as shown below:
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext)
{
    // Create the splitter window with two columns
    if (!m_wndSplitter.CreateStatic(this, 1, 2))
    {
        TRACE0("Failed to create splitter window\n");
        return FALSE;
    }

    Splitter2_.CreateStatic(&m_wndSplitter, 2, 1, WS_CHILD|WS_VISIBLE, m_wndSplitter.IdFromRowCol(0, 0));

    if (!m_wndSplitter.CreateView(0,1, RUNTIME_CLASS(CView1), CSize(0, 0), pContext))
    {
        TRACE0("Failed to create CView1\n");
        return FALSE;
    }

    if (!Splitter2_.CreateView(0,0, RUNTIME_CLASS(CView2), CSize(0, 0), pContext))
    {
        TRACE0("Failed to create CView2\n");
        return FALSE;
    }

    if (!Splitter2_.CreateView(1,0, RUNTIME_CLASS(CView3), CSize(0, 0), pContext))
    {
        TRACE0("Failed to create CView3\n");
        return FALSE;
    }

    //if (!m_wndSplitter.CreateView(1,1, RUNTIME_CLASS(CView4),
    //    CSize(0, 0), pContext))
    //{
    //    TRACE0("Failed to create CView4\n");
    //    return FALSE;
    //}

    CRect r;
    GetClientRect(&r);

    m_wndSplitter.SetRowInfo( 0, r.Height()/2, 0 );
    m_wndSplitter.SetColumnInfo( 0, r.Width()/2, 0 );

    return TRUE;
}
Now try to move the verticla splitter. I can't - it only judders!
Has anyone ever found a solution for this issue?
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2017 at 8:48am
Hi!

I just recognized that this is still not fixed in 18.0.1!
AngryAngry
AngryAngry
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.