Scope
scope::gui::CPresetNameDlg Class Reference

#include <PresetNameDlg.h>

Inherits CDialogImpl< CPresetNameDlg >.

Public Types

enum  { IDD = IDD_PRESETNAME_DIALOG }
 

Public Member Functions

 CPresetNameDlg (std::shared_ptr< std::wstring > _name)
 
Called via Win32 messages
LRESULT OnInitDialog (UINT, WPARAM, LPARAM, BOOL &)
 
LRESULT OnCloseCmd (WORD, WORD wID, HWND, BOOL &)
 

Protected Attributes

CEdit edit
 
std::shared_ptr< std::wstring > const name
 

Detailed Description

Simple dialog for naming a preset.

Definition at line 8 of file PresetNameDlg.h.

Constructor & Destructor Documentation

scope::gui::CPresetNameDlg::CPresetNameDlg ( std::shared_ptr< std::wstring >  _name)

Get a reference to a CString to write the name into.

Definition at line 8 of file PresetNameDlg.cpp.

Member Function Documentation

LRESULT scope::gui::CPresetNameDlg::OnInitDialog ( UINT  ,
WPARAM  ,
LPARAM  lParam,
BOOL &   
)

Initializes the dialog.

Definition at line 12 of file PresetNameDlg.cpp.

LRESULT scope::gui::CPresetNameDlg::OnCloseCmd ( WORD  ,
WORD  wID,
HWND  ,
BOOL &   
)
Returns
the choosen name or L"" if canceled

Definition at line 21 of file PresetNameDlg.cpp.

Member Data Documentation

CEdit scope::gui::CPresetNameDlg::edit
protected

the name edit control

Definition at line 13 of file PresetNameDlg.h.

std::shared_ptr<std::wstring> const scope::gui::CPresetNameDlg::name
protected

pointer to a string to write the name into

Definition at line 16 of file PresetNameDlg.h.


The documentation for this class was generated from the following files: