Ver Fonte

完成 导航栏的禁用/启用 宏定义。

Jeff há 6 anos atrás
pai
commit
48ee1c1f56
3 ficheiros alterados com 6 adições e 2 exclusões
  1. 2 0
      IDE/IDE/MainFrm.cpp
  2. 3 1
      IDE/IDE/MainFrm.h
  3. 1 1
      IDE/IDE/stdafx.h

+ 2 - 0
IDE/IDE/MainFrm.cpp

@@ -357,6 +357,7 @@ void CMainFrame::SetDockingWindowIcons(BOOL bHiColorIcons)
 	UpdateMDITabbedBarsIcons();
 }
 
+#if __OUTLOOKBAR__
 BOOL CMainFrame::CreateOutlookBar(CMFCOutlookBar& bar, UINT uiID, CMFCShellTreeCtrl& tree, CCalendarBar& calendar, int nInitialWidth)
 {
 	CWindowDC dc(NULL);
@@ -415,6 +416,7 @@ BOOL CMainFrame::CreateOutlookBar(CMFCOutlookBar& bar, UINT uiID, CMFCShellTreeC
 
 	return TRUE;
 }
+#endif
 
 BOOL CMainFrame::CreateCaptionBar()
 {

+ 3 - 1
IDE/IDE/MainFrm.h

@@ -59,8 +59,8 @@ protected:  // 
 	CClassView        m_wndClassView;
 	COutputWnd        m_wndOutput;
 	CPropertiesWnd    m_wndProperties;
-	COutlookBar       m_wndNavigationBar;
 #if __OUTLOOKBAR__
+	COutlookBar       m_wndNavigationBar;
 	CMFCShellTreeCtrl m_wndTree;
 	CCalendarBar      m_wndCalendar;
 #endif
@@ -79,7 +79,9 @@ protected:
 	void InitializeRibbon();
 	BOOL CreateDockingWindows();
 	void SetDockingWindowIcons(BOOL bHiColorIcons);
+#if __OUTLOOKBAR__
 	BOOL CreateOutlookBar(CMFCOutlookBar& bar, UINT uiID, CMFCShellTreeCtrl& tree, CCalendarBar& calendar, int nInitialWidth);
+#endif
 	BOOL CreateCaptionBar();
 
 	int FindFocusedOutlookWnd(CMFCOutlookBarTabCtrl** ppOutlookWnd);

+ 1 - 1
IDE/IDE/stdafx.h

@@ -48,7 +48,7 @@
 #include <afxcontrolbars.h>     // 功能区和控件条的 MFC 支持
 
 
-// 导航栏;
+// 导航栏-禁用/启用;
 #define __OUTLOOKBAR__  0