-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSimpleInputDlg.cpp
More file actions
33 lines (27 loc) · 847 Bytes
/
Copy pathSimpleInputDlg.cpp
File metadata and controls
33 lines (27 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SimpleInputDlg.cpp: implementation of the CSimpleInputDlg class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "SimpleInputDlg.h"
LRESULT CSimpleInputDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CenterWindow(GetParent());
ATLASSERT(m_bInit);
DoDataExchange(DDX_LOAD);
SetWindowText(m_title);
CWindow wnd = GetDlgItem(IDC_LABEL1);
wnd.SetWindowText(m_label);
return 0;
}
LRESULT CSimpleInputDlg::OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
DoDataExchange(DDX_SAVE);
EndDialog(IDOK);
return 0;
}
LRESULT CSimpleInputDlg::OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
EndDialog(IDCANCEL);
return 0;
}