在主框架中创建一个停靠,当我创建了一个子框架窗口时,我想让住框架窗口的停靠暂时隐藏起来,当需要它的时候再让它显示,该如何做?

解决方案 »

  1.   

    工具栏的停靠吗
    CFrameWnd里面有个ShowControlBar函数
    直接ShowWindow没用void ShowControlBar(
       CControlBar* pBar,
       BOOL bShow,
       BOOL bDelay 
    );
    Parameters
    pBar 
    Pointer to the control bar to be shown or hidden. 
    bShow 
    If TRUE, specifies that the control bar is to be shown. If FALSE, specifies that the control bar is to be hidden. 
    bDelay 
    If TRUE, delay showing the control bar. If FALSE, show the control bar immediately.