본문 바로가기

Windows/MFC

컨트롤 바(Control bar)를 보이거나 숨기는 방법

Control bar를 보이거나 숨기는 방법
Control Bar의 부모창인 CFrameWnd의 CFrameWnd::ShowControlBar() 함수를 이용한다.

[code]CControlBar        m_wndCtlBar;

// 숨길 때...
m_wndParentFrameWnd.ShowControlBar(&m_wndCtlBar, FALSE, FALSE);

//보일 때...
m_wndParentFrameWnd.ShowControlBar(&m_wndCtlBar, TRUE, FALSE);
[/code]