Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IMPLEMENT_DYNAMIC(InputDialog, CDialogEx)
- InputDialog::InputDialog(CWnd* pParent /*=NULL*/)
- : CDialogEx(InputDialog::IDD, pParent)
- , m_edit(_T(""))
- {
- }
- InputDialog::~InputDialog()
- {
- }
- void InputDialog::DoDataExchange(CDataExchange* pDX)
- {
- CDialogEx::DoDataExchange(pDX);
- DDX_Text(pDX, IDC_EDIT_INPUT, m_edit);
- DDV_MaxChars(pDX, m_edit, 5);
- }
- BEGIN_MESSAGE_MAP(InputDialog, CDialogEx)
- ON_BN_CLICKED(IDOK, &InputDialog::OnBnClickedOk)
- END_MESSAGE_MAP()
- void AFXAPI DDV_MinChars(CDataExchange* pDX, CString const& value, int nChars)
- {
- // ...
- if (pDX->m_bSaveAndValidate && value.GetLength() < nChars)
- {
- // ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement