Partager via


COleClientItem::OnShowControlBars

Called by the framework to show and hide the container application's control bars.

virtual BOOL OnShowControlBars(
   CFrameWnd* pFrameWnd,
   BOOL bShow 
);

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.

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.

Remarks

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.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleClientItem::OnInsertMenus

COleClientItem::OnSetMenu

COleClientItem::OnRemoveMenus

COleClientItem::OnUpdateFrameTitle

Other Resources

COleClientItem Members