// ViewDialog.cpp : implementation file // #include "stdafx.h" #include "Test_CE_DPP.h" #include "ViewDialog.h" // CViewDialog dialog IMPLEMENT_DYNAMIC(CViewDialog, CDialog) CViewDialog::CViewDialog(CWnd* pParent /*=NULL*/) : CDialog(CViewDialog::IDD, pParent) { } CViewDialog::~CViewDialog() { } void CViewDialog::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CViewDialog, CDialog) ON_BN_CLICKED(IDOK, &CViewDialog::OnBnClickedOk) END_MESSAGE_MAP() // CViewDialog message handlers BOOL CViewDialog::OnInitDialog() { CDialog::OnInitDialog(); GetDlgItem(IDC_DISPLAY_EDIT)->SetWindowText(cstrConfig); return TRUE; // return TRUE unless you set the focus to a control } void CViewDialog::OnBnClickedOk() { // TODO: Add your control notification handler code here OnOK(); }