Print Page | Close Window

CXTResizeFormView example?

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=1292
Printed Date: 07 November 2025 at 4:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTResizeFormView example?
Posted By: rjgraham
Subject: CXTResizeFormView example?
Date Posted: 17 October 2004 at 11:28am

Hello,

I'veimplemented a class derived from CXTResizeFormView and find that my OnInitialUpdate() method is not getting called (I assume this is where my SetResize() calls should go).

Can anyone provide an example of using CXTResizeFormView ?

Thanks,

-Randy

 




Replies:
Posted By: AndyS
Date Posted: 20 December 2004 at 2:58pm

Same issue here. An MDI frame window containing a bunch of docking panes only calls the OnInitialUpdate() on the visible panes on startup. If panes are not visible (i.e. programatically docked behind others using AttachPane()) they don't exist during LoadFrame so the SendMessageToDescendants from the Frame base class doesn't get there. Presumably the requirement is either to create the views at OnCreate in the FrameWnd or send the initial update message to each view on dynamic creation in the OnDockingPaneNotify message handler. This MUST be a common issue so an official statement of best practise would be good or a comment regarding this in the OnDockingPaneNotify handler examples.

 



Posted By: AndyS
Date Posted: 20 December 2004 at 3:08pm
I forgot... if you do the dirty and poke the SendMessage into the OnDockingPaneNotify then bear in mind that your OnInitialUpdate will get called twice for any panes which are create prior to the frame loading. Might be better just to bite the bullet and create all the views up front in OnCreate and forget about dynamic creation.



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