RG_Basser
asked on
Updating the Controls of a Toolbar with Document Data
Hello,
I've written a mdi app with three views, one of them being of CFormView() style. This View contains mainly spin Controls with attached CEdit Controls which control the behavior of the contents of the other views. And viceversa interaction with the other views can change the contents of the controls. Now I decided to move the controls of the formview into a Toolbar. The generation of the Toolbar isn't the problem (I derived a class of CToolBar and included an OnCreate() function).
But how can I update the contents of my Toolbar controls dependent on my data of the document (like UpdateAllViews() did before with my CFormView View)? And the other way? How can I perform action by pressing a spin control in my toolbar so that data of the document and all Views is updated?
Thanks for help!
I've written a mdi app with three views, one of them being of CFormView() style. This View contains mainly spin Controls with attached CEdit Controls which control the behavior of the contents of the other views. And viceversa interaction with the other views can change the contents of the controls. Now I decided to move the controls of the formview into a Toolbar. The generation of the Toolbar isn't the problem (I derived a class of CToolBar and included an OnCreate() function).
But how can I update the contents of my Toolbar controls dependent on my data of the document (like UpdateAllViews() did before with my CFormView View)? And the other way? How can I perform action by pressing a spin control in my toolbar so that data of the document and all Views is updated?
Thanks for help!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.