Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTResizeFormView example?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTResizeFormView example?

 Post Reply Post Reply
Author
Message
rjgraham View Drop Down
Newbie
Newbie


Joined: 17 October 2004
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote rjgraham Quote  Post ReplyReply Direct Link To This Post 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

 

Back to Top
AndyS View Drop Down
Groupie
Groupie


Joined: 15 December 2004
Location: United Kingdom
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyS Quote  Post ReplyReply Direct Link To This Post 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.

 

Back to Top
AndyS View Drop Down
Groupie
Groupie


Joined: 15 December 2004
Location: United Kingdom
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndyS Quote  Post ReplyReply Direct Link To This Post 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.
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.046 seconds.