MyCodeDlg.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //Download by http://www.NewXing.com
  2. // MyCodeDlg.cpp : implementation file
  3. //
  4. #include "stdafx.h"
  5. #include "walkltdemo.h"
  6. #include "MyCodeDlg.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CMyCodeDlg dialog
  14. CMyCodeDlg::CMyCodeDlg(CWnd* pParent /*=NULL*/)
  15. : CDialog(CMyCodeDlg::IDD, pParent)
  16. {
  17. //{{AFX_DATA_INIT(CMyCodeDlg)
  18. m_str = _T("");
  19. //}}AFX_DATA_INIT
  20. }
  21. void CMyCodeDlg::DoDataExchange(CDataExchange* pDX)
  22. {
  23. CDialog::DoDataExchange(pDX);
  24. //{{AFX_DATA_MAP(CMyCodeDlg)
  25. DDX_Control(pDX, IDC_EDIT1, m_ctrl);
  26. DDX_Text(pDX, IDC_EDIT1, m_str);
  27. //}}AFX_DATA_MAP
  28. }
  29. BEGIN_MESSAGE_MAP(CMyCodeDlg, CDialog)
  30. //{{AFX_MSG_MAP(CMyCodeDlg)
  31. //}}AFX_MSG_MAP
  32. END_MESSAGE_MAP()
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CMyCodeDlg message handlers
  35. BOOL CMyCodeDlg::OnInitDialog()
  36. {
  37. CDialog::OnInitDialog();
  38. m_ctrl.SetTabStops(16);
  39. if (!m_title.IsEmpty())
  40. this->SetWindowText(m_title);
  41. return TRUE;
  42. }