1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011,2013 - TortoiseGit
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 // MainFrm.h : interface of the CMainFrame class
25 #include "OutputWnd.h"
26 #include "PropertiesWnd.h"
28 class CMainFrame
: public CFrameWndEx
31 protected: // create from serialization only
33 DECLARE_DYNCREATE(CMainFrame
)
34 virtual void OnUpdateFrameTitle(BOOL bAddToTitle
)
36 CFrameWndEx::OnUpdateFrameTitle( bAddToTitle
);
46 virtual BOOL
PreCreateWindow(CREATESTRUCT
& cs
);
47 virtual BOOL
LoadFrame(UINT nIDResource
, DWORD dwDefaultStyle
= WS_OVERLAPPEDWINDOW
| FWS_ADDTOTITLE
, CWnd
* pParentWnd
= NULL
, CCreateContext
* pContext
= NULL
);
51 virtual ~CMainFrame();
53 virtual void AssertValid() const;
54 virtual void Dump(CDumpContext
& dc
) const;
57 COutputWnd m_wndOutput
;
58 CPropertiesWnd m_wndProperties
;
59 CMFCStatusBar m_wndStatusBar
;
60 protected: // control bar embedded members
61 CMFCMenuBar m_wndMenuBar
;
62 CMFCToolBar m_wndToolBar
;
63 CMFCToolBarImages m_UserImages
;
65 // Generated message map functions
67 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct
);
68 afx_msg
void OnUpdateHelpFinder(CCmdUI
*pCmdUI
);
69 afx_msg
void OnViewCustomize();
70 afx_msg LRESULT
OnToolbarCreateNew(WPARAM wp
, LPARAM lp
);
71 afx_msg
void OnApplicationLook(UINT id
);
72 afx_msg
void OnUpdateApplicationLook(CCmdUI
* pCmdUI
);
73 afx_msg LRESULT
OnTaskbarButtonCreated(WPARAM wParam
, LPARAM lParam
);
76 BOOL
CreateDockingWindows();
77 void SetDockingWindowIcons(BOOL bHiColorIcons
);