1 // Copyright 2001-2018 Crytek GmbH / Crytek Group. All rights reserved.
5 #include "MultiLineStringDlg.h"
7 CMultiLineStringDlg::CMultiLineStringDlg(const char* title
, CWnd
* pParent
)
8 : CXTResizeDialog(CMultiLineStringDlg::IDD
, pParent
)
16 //////////////////////////////////////////////////////////////////////////
17 void CMultiLineStringDlg::DoDataExchange(CDataExchange
* pDX
)
19 CDialog::DoDataExchange(pDX
);
21 DDX_Text(pDX
, IDC_STRING
, m_strString
);
24 BEGIN_MESSAGE_MAP(CMultiLineStringDlg
, CXTResizeDialog
)
25 //{{AFX_MSG_MAP(CMultiLineStringDlg)
29 /////////////////////////////////////////////////////////////////////////////
30 // CMultiLineStringDlg message handlers
31 BOOL
CMultiLineStringDlg::OnInitDialog()
33 BOOL res
= __super::OnInitDialog();
37 if (!m_title
.IsEmpty())
38 SetWindowText(m_title
);
40 SetResize(IDOK
, SZ_REPOS(1));
41 SetResize(IDCANCEL
, SZ_REPOS(1));
43 SetResize(IDC_STATIC
, CXTResizeRect(0, 1, 1, 1));
44 SetResize(IDC_STRING
, SZ_RESIZE(1));
47 return res
; // return TRUE unless you set the focus to a control