Discussion:
Print preview and CDockingManager
(too old to reply)
Hans-J. Ude
2010-09-01 11:59:38 UTC
Permalink
For the print preview I would like to hide my docked panes to have more
room and restore them afterwards. It's a tabbed MDI App. I guess this
will work using CMDIFrameWndEx::m_dockManager and
CMDIChildWndEx::m_dockManager but I haven't found out the details yet.
Maybe there's an example in the feature pack, any ideas? Environment is
VC 10.

TIA,
Hans
Seetharam
2010-09-02 16:02:36 UTC
Permalink
Have you tried using 'ShowPanes(BOOL bShow)' to hide all the panes?

-Seetharam
Hans-J. Ude
2010-09-02 19:42:58 UTC
Permalink
Post by Seetharam
Have you tried using 'ShowPanes(BOOL bShow)' to hide all the panes?
m_dockManager.ShowPanes(b);

When I call that from CMainFrame, it only hides/shows the ribbon,
nothing else and doesn't redraw the rest of the main frame. My frame
layout is similar to the RibbonMDIDemo from Feature Pack.

Hans
Mike Appleby
2011-12-03 11:29:52 UTC
Permalink
When you create your pane(s) make sure that you have the flag CBRS_HIDE_INPLACE set.
Post by Hans-J. Ude
For the print preview I would like to hide my docked panes to have more
room and restore them afterwards. it is a tabbed MDI App. I guess this
will work using CMDIFrameWndEx::m_dockManager and
CMDIChildWndEx::m_dockManager but I have not found out the details yet.
Maybe there is an example in the feature pack, any ideas? Environment is
VC 10.
TIA,
Hans
Post by Seetharam
Have you tried using 'ShowPanes(BOOL bShow)' to hide all the panes?
-Seetharam
Post by Hans-J. Ude
m_dockManager.ShowPanes(b);
When I call that from CMainFrame, it only hides/shows the ribbon,
nothing else and does not redraw the rest of the main frame. My frame
layout is similar to the RibbonMDIDemo from Feature Pack.
Hans
micey
2011-12-03 11:33:27 UTC
Permalink
Hans-J. Ude wrote on 09/02/2010 15:42 ET
Am 02.09.2010 18:02, schrieb Seetharam
Post by Seetharam
Have you tried using 'ShowPanes(BOOL bShow)' to hide all the panes
m_dockManager.ShowPanes(b)
When I call that from CMainFrame, it only hides/shows the ribbon
nothing else and doesn't redraw the rest of the main frame. My fram
layout is similar to the RibbonMDIDemo from Feature Pack
Han
When you create your pane(s) make sure that you have the fla
CBRS_HIDE_INPLAC
set.

micey
2011-12-03 11:27:16 UTC
Permalink
Hans-J. Ude wrote on 09/01/2010 07:59 ET
Post by Hans-J. Ude
For the print preview I would like to hide my docked panes to have mor
room and restore them afterwards. It's a tabbed MDI App. I guess thi
will work using CMDIFrameWndEx::m_dockManager an
CMDIChildWndEx::m_dockManager but I haven't found out the details yet
Maybe there's an example in the feature pack, any ideas? Environment i
VC 10
TIA
Han
When you create your pane(s), ensure that you have the flag CBRS_HIDE_INPLAC
set and ShowPanes will work

If you step into the method ShowPanes you will see that it checks for thi
fla
if it is to hide the pane

Mike.
Loading...