From 813ae03da33fc77e1fe0706a5fbbfd4070b79b7a Mon Sep 17 00:00:00 2001 From: Kevin Wasserman Date: Sat, 21 Jul 2012 19:52:20 -0400 Subject: kfw remove status bar Signed-off-by: Kevin Wasserman ticket: 7251 (new) queue: kfw target_version: 1.10.4 tags: pullup --- src/windows/leash/MainFrm.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/windows/leash/MainFrm.cpp') diff --git a/src/windows/leash/MainFrm.cpp b/src/windows/leash/MainFrm.cpp index 534650292..5f1c6e662 100644 --- a/src/windows/leash/MainFrm.cpp +++ b/src/windows/leash/MainFrm.cpp @@ -33,7 +33,9 @@ static char THIS_FILE[] = __FILE__; #define MIN_RIGHT 530 #define MIN_BOTTOM 280 +#ifndef NO_STATUS_BAR CMFCStatusBar CMainFrame::m_wndStatusBar; +#endif CMFCToolBar CMainFrame::m_wndToolBar; CImageList CMainFrame::m_imageList; CImageList CMainFrame::m_disabledImageList; @@ -140,6 +142,7 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) return -1; // fail to create } +#ifndef NO_STATUS_BAR if (!m_wndStatusBar.Create(this) || !m_wndStatusBar.SetIndicators(indicators, (CLeashApp::m_hAfsDLL ? 4 : 3))) @@ -149,6 +152,8 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) TRACE0("Failed to create status bar\n"); return -1; // fail to create } +#endif + // TODO: Remove this if you don't want tool tips or a resizeable toolbar //m_wndToolBar.SetPaneStyle(m_wndToolBar.GetPaneStyle() | @@ -382,7 +387,7 @@ void CMainFrame::OnClose(void) LRESULT CMainFrame::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) { BOOL oldMin = m_isMinimum; - printf("CMainFrame::WindowProc() Msg: %x, WPARAM: %x, LPARAM: %x\n", message, wParam, lParam); + //printf("CMainFrame::WindowProc() Msg: %x, WPARAM: %x, LPARAM: %x\n", message, wParam, lParam); switch(message) { case WM_CLOSE: @@ -422,4 +427,4 @@ void CMainFrame::OnContextHelp() { } -*/ \ No newline at end of file +*/ -- cgit