Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPSplitterWnd bug
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPSplitterWnd bug

 Post Reply Post Reply
Author
Message
maxxan View Drop Down
Groupie
Groupie


Joined: 15 July 2009
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote maxxan Quote  Post ReplyReply Direct Link To This Post Topic: CXTPSplitterWnd bug
    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..

Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 08 March 2016 at 4:13am
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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.172 seconds.