Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Strange behaviour of CXTSplitterWnd
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Strange behaviour of CXTSplitterWnd

 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: Strange behaviour of CXTSplitterWnd
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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: 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
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.031 seconds.