ticketStatusKrb5.Format("Kerb-5 Ticket Life: < 1 min");
}
}
-
+#ifndef NO_STATUS_BAR
if (CMainFrame::m_wndStatusBar)
{
CMainFrame::m_wndStatusBar.SetPaneInfo(1, 111112, SBPS_NORMAL, 130);
CMainFrame::m_wndStatusBar.SetPaneText(1, ticketStatusKrb5, SBT_POPOUT);
}
+#endif
}
}
else
{
// not installed
ticketStatusKrb5.Format("Kerb-5: Not Available");
-
+#ifndef NO_STATUS_BAR
if (CMainFrame::m_wndStatusBar)
{
CMainFrame::m_wndStatusBar.SetPaneInfo(1, 111112, SBPS_NORMAL, 130);
CMainFrame::m_wndStatusBar.SetPaneText(1, ticketStatusKrb5, SBT_POPOUT);
}
+#endif
}
//KRB5
ticketStatusAfs.Format("AFS Token Life: < 1 min");
}
}
-
+#ifndef NO_STATUS_BAR
if (CMainFrame::m_wndStatusBar)
{
CMainFrame::m_wndStatusBar.SetPaneInfo(3, 111113, SBPS_NORMAL, 130);
CMainFrame::m_wndStatusBar.SetPaneText(3, ticketStatusAfs, SBT_POPOUT);
}
+#endif
}
}
#ifdef COMMENT
#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;
return -1; // fail to create
}
+#ifndef NO_STATUS_BAR
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
(CLeashApp::m_hAfsDLL ? 4 : 3)))
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() |
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:
{
}
-*/
\ No newline at end of file
+*/
// Attributes
public:
static int m_whatSide;
+#ifndef NO_STATUS_BAR
static CMFCStatusBar m_wndStatusBar;
+#endif
static CMFCToolBar m_wndToolBar;
static BOOL m_isMinimum;
static BOOL m_isBeingResized;
RFLAGS = $(LOCALINCLUDES)
RCFLAGS = $(RFLAGS) -D_WIN32 -DLEASH_APP
-DEFINES = -DWINSOCK -DWIN32 -DWINDOWS -D_AFXDLL -D_MBCS -DNO_KRB4
+DEFINES = -DWINSOCK -DWIN32 -DWINDOWS -D_AFXDLL -D_MBCS -DNO_KRB4 -DNO_STATUS_BAR
!ifdef NODEBUG
DEFINES = $(DEFINES)
!else