Print Page | Close Window

Strange behaviour of CXTSplitterWnd

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15227
Printed Date: 22 June 2025 at 3:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Strange behaviour of CXTSplitterWnd
Posted By: mgampi
Subject: Strange behaviour of CXTSplitterWnd
Date Posted: 22 September 2009 at 5:20pm
Hi;

I found a strange behaviour of CXTSplitterWnd in ShortcutBarSample.
Just change one line of code in CMainFrame::OnCreateClient() and the failure appears:

Change m_wndSplitter.SetColumnInfo(0, 250,50); to m_wndSplitter.SetColumnInfo(0, 250,200);

Then move the splitter to the left side. As soon as the width of the shortcut bar is less then 200 px the control completely disappears. Moving the splitter afterwards to a position less than the cxMin size of 200 px let the splitter jump back to the left border of the splitter window.

Normally the splitter should be fixed to the cxMin size and never ever shrink to 0.

Did anyone else find and solve 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



Replies:
Posted By: Oleg
Date Posted: 23 September 2009 at 3:33am
Hi,
 
its thing of MFC's CSplitterWnd not our CXTSplitterWnd.
 
See int MFC sources CSplitterWnd::TrackRowSize and CSplitterWnd::TrackColumnSize. They are virtual so you can change this behavior.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mgampi
Date Posted: 23 September 2009 at 3:24pm
That's it!

Thanks Oleg for pointing the right way...


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net