CXTPSplitterWnd bug |
Post Reply |
Author | |
maxxan
Groupie Joined: 15 July 2009 Status: Offline Points: 49 |
Post Options
Thanks(0)
Posted: 08 March 2016 at 3:17am |
When creating splitter windows that are inside other splitter windows, then it's not possible to resize them any more. If you test this code, and then try to move the horizontal splitter window, it moves like a few pixels and then it stops tracking. To easily reproduce the bug, then in your Splitter window sample replace the CMainFrame::OnCreateClient code with this to create a T shaped splitter. // Create the first splitter m_wndSplitter.CreateStatic(this, 2, 1); m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CView3), CSize(0, 0), pContext); // Create the second splitter m_wndSplitter2.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD | WS_VISIBLE | WS_BORDER, m_wndSplitter.IdFromRowCol(0, 0)); m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CView1), CSize(0, 0), pContext); m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CView2), CSize(0, 0), pContext); It works with CSplitterWnd.. |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
Hi,
as a workaround please replace CXTPSplitterWnd with the following class: class CMySplitterWnd : public CXTPSplitterWnd { void StopTracking(BOOL bAccept) { m_rectTracker.left -= 2; CXTPSplitterWnd::StopTracking(bAccept); } }; I reported this bug 4 years ago! |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |