Fix typos
[TortoiseGit.git] / src / TortoiseProc / Settings / SetExtMenu.h
blob9ec9ec0c0ddc9b22d89e117ffd801fc942e8260e
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2010, 2012, 2019, 2023 - TortoiseGit
4 // Copyright (C) 2008 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
21 #include "resource.h"
22 #include "StandAloneDlg.h"
24 class CSetExtMenu : public ISettingsPropPage
26 DECLARE_DYNAMIC(CSetExtMenu)
28 public:
29 CSetExtMenu();
30 virtual ~CSetExtMenu();
32 UINT GetIconID() override { return IDI_MISC; }
34 // Dialog Data
35 enum { IDD = IDD_SETTINGSEXTMENU };
37 protected:
38 void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
39 BOOL OnApply() override;
40 afx_msg void OnLvnItemchangedMenulist(NMHDR *pNMHDR, LRESULT *pResult);
41 afx_msg void OnBnClickedSelectall();
42 afx_msg void OnBnClickedRestoreDefaults();
43 afx_msg void OnChange();
45 DECLARE_MESSAGE_MAP()
46 public:
47 BOOL OnInitDialog() override;
49 private:
50 CRegStdDWORD m_regExtmenu;
51 CRegStdDWORD m_regExtmenuhigh;
53 ULARGE_INTEGER m_extmenu;
55 CImageList m_imgList;
56 CListCtrl m_cMenuList;
57 bool m_bBlock = false;