1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2009-2011 - 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.
24 class CPatchListCtrl
: public CListCtrl
26 DECLARE_DYNAMIC(CPatchListCtrl
)
30 virtual ~CPatchListCtrl();
31 DWORD m_ContextMenuMask
;
43 STATUS_APPLYING
= 0x10000,
44 STATUS_APPLY_RETRY
= 0x1,
45 STATUS_APPLY_FAIL
= 0x2,
46 STATUS_APPLY_SUCCESS
=0x4,
47 STATUS_APPLY_SKIP
=0x8,
51 DWORD
GetMenuMask(int x
){return 1<<x
;}
59 afx_msg
void OnNMDblclk(NMHDR
*pNMHDR
, LRESULT
*pResult
);
60 afx_msg
void OnContextMenu(CWnd
* /*pWnd*/, CPoint
/*point*/);
61 int LaunchProc(const CString
& cmd
);
62 afx_msg
void OnNMCustomdraw(NMHDR
*pNMHDR
, LRESULT
*pResult
);