!XT (BREAK-16) (Sandbox) Remove double-newlines at the end of files.
[CRYENGINE.git] / Code / Sandbox / Plugins / FacialEditorPlugin / MultiLineStringDlg.cpp
blobde5c10551f0520f79f3b4a853b871fc03de85062
1 // Copyright 2001-2018 Crytek GmbH / Crytek Group. All rights reserved.
3 #include "stdafx.h"
5 #include "MultiLineStringDlg.h"
7 CMultiLineStringDlg::CMultiLineStringDlg(const char* title, CWnd* pParent)
8 : CXTResizeDialog(CMultiLineStringDlg::IDD, pParent)
10 m_strString = _T("");
12 if (title)
13 m_title = title;
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)
26 //}}AFX_MSG_MAP
27 END_MESSAGE_MAP()
29 /////////////////////////////////////////////////////////////////////////////
30 // CMultiLineStringDlg message handlers
31 BOOL CMultiLineStringDlg::OnInitDialog()
33 BOOL res = __super::OnInitDialog();
35 if (res)
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