Updated libgit to version 2.46.2 based on Git for Windows sources
[TortoiseGit.git] / src / TortoiseGitBlame / MainFrm.h
blob2d3f54463a03e8fe7f25b4ae14a9b728d1d6146d
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008-2011, 2013, 2016-2017, 2020, 2023 - 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
24 #pragma once
25 #include "OutputWnd.h"
26 #include "PropertiesWnd.h"
28 class CMainFrame : public CFrameWndEx
30 protected: // create from serialization only
31 CMainFrame();
32 DECLARE_DYNCREATE(CMainFrame)
33 virtual void OnUpdateFrameTitle(BOOL bAddToTitle) override
35 CFrameWndEx::OnUpdateFrameTitle( bAddToTitle);
38 public:
39 BOOL PreCreateWindow(CREATESTRUCT& cs) override;
40 BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = nullptr, CCreateContext* pContext = nullptr) override;
42 // Implementation
43 public:
44 virtual ~CMainFrame();
45 #ifdef _DEBUG
46 void AssertValid() const override;
47 void Dump(CDumpContext& dc) const override;
48 #endif
50 COutputWnd m_wndOutput;
51 CPropertiesWnd m_wndProperties;
52 CMFCStatusBar m_wndStatusBar;
53 protected: // control bar embedded members
54 CMFCMenuBar m_wndMenuBar;
55 CMFCToolBar m_wndToolBar;
56 CMFCToolBarImages m_UserImages;
58 // Generated message map functions
59 protected:
60 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
61 afx_msg void OnDestroy();
62 afx_msg void OnSysColorChange();
63 afx_msg void OnUpdateHelpFinder(CCmdUI *pCmdUI);
64 afx_msg void OnViewCustomize();
65 afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
66 afx_msg LRESULT OnTaskbarButtonCreated(WPARAM wParam, LPARAM lParam);
67 DECLARE_MESSAGE_MAP()
69 int m_themeCallbackId = 0;
70 void SetTheme(bool bDark);
72 BOOL CreateDockingWindows();
73 void SetDockingWindowIcons(BOOL bHiColorIcons);