Discussion:
MDI app: how to manage children's data ?
(too old to reply)
p***@yahoo.com
2013-02-26 16:20:54 UTC
Permalink
Hi all, I'm creating a MDI application with a toolbar (just like MS Word). The toolbar contains controls (let's say eg a combobox indicating the font for the current child window). What is the best way to store the data in the toolbar when, for a given child, the focus is lost, and to set the stored data back in the toolbar when the same child is gaining focus again ?
Hope I'm clear, TIA!
Phil
David Lowndes
2013-02-26 16:49:12 UTC
Permalink
Post by p***@yahoo.com
What is the best way to store the data in the toolbar when, for a given child, the focus is lost, and to set the stored data back in the toolbar when the same child is gaining focus again ?
Phil,

When the view changes (look at handling OnMDIActivate), just update
the toolbar controls with the view document data.

Dave
p***@yahoo.com
2013-02-26 18:29:17 UTC
Permalink
Thanks Dave! OnMDIActivate is what I was looking for.

Loading...