Scope
PresetNameDlg.h
1 #pragma once
2 #include "../resource.h"
3 
4 namespace scope {
5  namespace gui {
6 
9  : public CDialogImpl<CPresetNameDlg> {
10 
11 protected:
13  CEdit edit;
14 
16  std::shared_ptr<std::wstring> const name;
17 
18 public:
19  enum { IDD = IDD_PRESETNAME_DIALOG };
20 
22  CPresetNameDlg(std::shared_ptr<std::wstring> _name);
23 
24  BEGIN_MSG_MAP(CPresetNameDlg)
25  MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
26  COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
27  COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
28  END_MSG_MAP()
29 
33  LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
34 
36  LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
38 };
39 
40 }}
Simple dialog for naming a preset.
Definition: PresetNameDlg.h:8
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 &)
CEdit edit
the name edit control
Definition: PresetNameDlg.h:13
std::shared_ptr< std::wstring > const name
pointer to a string to write the name into
Definition: PresetNameDlg.h:16
LRESULT OnInitDialog(UINT, WPARAM, LPARAM, BOOL &)
Initializes the dialog.