From c89e79f12d5d26ac10c31eb6ca5d8840f4b26acf Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 5 Aug 2011 19:12:25 +0200 Subject: [PATCH] do not allow the dialog to be changed in height Signed-off-by: Sven Strickroth --- src/TortoiseProc/FormatPatchDlg.cpp | 8 ++++---- src/TortoiseProc/FormatPatchDlg.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/TortoiseProc/FormatPatchDlg.cpp b/src/TortoiseProc/FormatPatchDlg.cpp index bf47bf31d..4a075c171 100644 --- a/src/TortoiseProc/FormatPatchDlg.cpp +++ b/src/TortoiseProc/FormatPatchDlg.cpp @@ -30,10 +30,10 @@ // CFormatPatchDlg dialog -IMPLEMENT_DYNAMIC(CFormatPatchDlg, CResizableStandAloneDialog) +IMPLEMENT_DYNAMIC(CFormatPatchDlg, CHorizontalResizableStandAloneDialog) CFormatPatchDlg::CFormatPatchDlg(CWnd* pParent /*=NULL*/) - : CResizableStandAloneDialog(CFormatPatchDlg::IDD, pParent), + : CHorizontalResizableStandAloneDialog(CFormatPatchDlg::IDD, pParent), m_regSendMail(_T("Software\\TortoiseGit\\TortoiseProc\\FormatPatch\\SendMail"),0) { m_Num=1; @@ -66,7 +66,7 @@ void CFormatPatchDlg::DoDataExchange(CDataExchange* pDX) } -BEGIN_MESSAGE_MAP(CFormatPatchDlg, CResizableStandAloneDialog) +BEGIN_MESSAGE_MAP(CFormatPatchDlg, CHorizontalResizableStandAloneDialog) ON_BN_CLICKED(IDC_BUTTON_DIR, &CFormatPatchDlg::OnBnClickedButtonDir) ON_BN_CLICKED(IDC_BUTTON_FROM, &CFormatPatchDlg::OnBnClickedButtonFrom) ON_BN_CLICKED(IDC_BUTTON_TO, &CFormatPatchDlg::OnBnClickedButtonTo) @@ -79,7 +79,7 @@ END_MESSAGE_MAP() BOOL CFormatPatchDlg::OnInitDialog() { - CResizableStandAloneDialog::OnInitDialog(); + CHorizontalResizableStandAloneDialog::OnInitDialog(); CAppUtils::MarkWindowAsUnpinnable(m_hWnd); AddAnchor(IDC_GROUP_DIR, TOP_LEFT, TOP_RIGHT); diff --git a/src/TortoiseProc/FormatPatchDlg.h b/src/TortoiseProc/FormatPatchDlg.h index 7f21a172c..d794fb237 100644 --- a/src/TortoiseProc/FormatPatchDlg.h +++ b/src/TortoiseProc/FormatPatchDlg.h @@ -19,13 +19,13 @@ #pragma once -#include "StandAloneDlg.h" +#include "HorizontalResizableStandAloneDialog.h" #include "HistoryCombo.h" #include "Registry.h" // CFormatPatchDlg dialog -class CFormatPatchDlg : public CResizableStandAloneDialog +class CFormatPatchDlg : public CHorizontalResizableStandAloneDialog { DECLARE_DYNAMIC(CFormatPatchDlg) -- 2.11.4.GIT