Print Page | Close Window

CXTPTabClientWnd and the horizontal scroll bar

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=6834
Printed Date: 18 September 2025 at 9:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabClientWnd and the horizontal scroll bar
Posted By: d-sleeman
Subject: CXTPTabClientWnd and the horizontal scroll bar
Date Posted: 10 April 2007 at 10:32pm
I have a project that uses the CXTPTabClientWnd to display multiple documents using views derived from CScrollView.

Each of my views inside of the tabs are larger than the client area and have both vertical and horizontal scroll bars in most cases. When I have multiple tabs open and maximized (the default behaviour) and I switch between tabs with the mouse, the vertical scroll position is maintained, but the horizontal scroll position is reset to 0.

Now it gets weird. If I tile or cascade the windows, change the horizontal scroll position and then maximize them again, switching between tabs does maintain the horizontal scroll position.

Does anyone have a clue what's happening here? I have checked the code in my view where scrolling is performed and none of my own functions are called when the tabs switch. Any help would be greatly appreciated.



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