Print Page | Close Window

CXTSplitterWnd and PaneOptions sample

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=711
Printed Date: 24 December 2024 at 8:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTSplitterWnd and PaneOptions sample
Posted By: Joe Brown
Subject: CXTSplitterWnd and PaneOptions sample
Date Posted: 10 May 2004 at 4:24pm
I have an app similar to the PaneOptions sample program. I want to know when a splitter moves so that I can do some calculations for the objects in each frame that is separated by my splitter. Is there a message that I need to override? I looked through the XTSplitterWnd source and didn't see anything that looked like a message was sent to the parent object.

It looks like I can override WM_SIZE, but is this the best way to know when a splitter moves? I don't care about the entire app resizing, just the splitter.

Also how can one get the rect inside of the frame? I'm not having any luck looking at OnCreate. I want the object I create to fill the entire frame, but need to pass it a rect.



Replies:
Posted By: Joe Brown
Date Posted: 12 May 2004 at 1:29pm
I ended up handling the WM_SIZE message in my custom control, and do a MoveWindow(0, 0, cx, cy) so that my control gets resized to the view.



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