virtual BOOL OnShowControlBars( CFrameWnd* pFrameWnd, BOOL bShow );
Return Value
Nonzero if the function call causes a change in the control bars’ state; 0 if the call causes no change, or if pFrameWnd does not point to the container’s frame window.
Parameters
pFrameWnd
Pointer to the container application’s frame window. This can be either a main frame window or an MDI child window.
bShow
Specifies whether control bars are to be shown or hidden.
Remarks
Called by the framework to show and hide the container application’s control bars. This function returns 0 if the control bars are already in the state specified by bShow. This would occur, for example, if the control bars are hidden and bShow is FALSE.
The default implementation removes the toolbar from the top-level frame window.
COleClientItem Overview | Class Members | Hierarchy Chart
See Also COleClientItem::OnInsertMenus, COleClientItem::OnSetMenu, COleClientItem::OnRemoveMenus, COleClientItem::OnUpdateFrameTitle