![]() |
Strange behaviour of CXTSplitterWnd |
Post Reply ![]() |
Author | |
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |