I have a MDI application which uses two toolbars based on the document type. Say I have MDIChild1,MDIChild2 two frame classes with toolbar1, toolbar2 associated to them.
In CMainFrame's oncreate function I create both the toolbars and show toolbar1 and hide toolbar2. Now when I open MDIChild2 frame and associted doc/view I want toolbar2 to be
visible and toolbar1 to be hidden.
So I have written following code in Overridden OnMDIActivate (WM_MDIACTIVATE)function of MDIChild2.
Everything is working as expected but when I call print preview fron MDIChild2 the print preview dilaog is shown and
when I close this Toolbar1 is also shown along with Toolbar2. Can anybody say why is this happening.