![]() |
CXTResizeFormView example? |
Post Reply
|
| Author | |
rjgraham
Newbie
Joined: 17 October 2004 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTResizeFormView example?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
|
|
![]() |
|
AndyS
Groupie
Joined: 15 December 2004 Location: United Kingdom Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
AndyS
Groupie
Joined: 15 December 2004 Location: United Kingdom Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
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 |