2 #include "PresetNameDlg.h"
13 edit.Attach(GetDlgItem(IDC_NAME_EDIT));
14 CenterWindow(GetParent());
23 int32_t length =
edit.GetWindowTextLength()+1;
24 std::vector<wchar_t> buff(length, L
' ');
25 edit.GetWindowText(buff.data(), length);
26 name->assign(buff.begin(), buff.end()-1);
28 if ( wID == IDCANCEL ) {
CPresetNameDlg(std::shared_ptr< std::wstring > _name)
Get a reference to a CString to write the name into.
LRESULT OnCloseCmd(WORD, WORD wID, HWND, BOOL &)
This is the include file for standard system include files, or project specific include files that ar...
CEdit edit
the name edit control
std::shared_ptr< std::wstring > const name
pointer to a string to write the name into
LRESULT OnInitDialog(UINT, WPARAM, LPARAM, BOOL &)
Initializes the dialog.