Provide (experimental) clang-format file
[TortoiseGit.git] / src / TortoiseProc / SyncTabCtrl.cpp
blob48945532a1f9a10cbdd8b7ef716237450cf4479c
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2016 - 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.
20 #include "stdafx.h"
21 #include "SyncDlg.h"
22 #include "SyncTabCtrl.h"
24 IMPLEMENT_DYNAMIC(CSyncTabCtrl, CMFCTabCtrl)
26 CSyncTabCtrl::CSyncTabCtrl()
30 CSyncTabCtrl::~CSyncTabCtrl()
34 BEGIN_MESSAGE_MAP(CSyncTabCtrl, CMFCTabCtrl)
35 ON_NOTIFY(EN_LINK, IDC_CMD_LOG, OnEnLinkLog)
36 ON_EN_VSCROLL(IDC_CMD_LOG, OnEnscrollLog)
37 ON_EN_HSCROLL(IDC_CMD_LOG, OnEnscrollLog)
38 END_MESSAGE_MAP()
40 void CSyncTabCtrl::OnEnLinkLog(NMHDR *pNMHDR, LRESULT *pResult)
42 ((CSyncDlg*)GetParent())->OnEnLinkLog(pNMHDR, pResult);
45 void CSyncTabCtrl::OnEnscrollLog()
47 ((CSyncDlg*)GetParent())->OnEnscrollLog();