testdlg.cpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // testdlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "LYFZIPManage.h"
  5. #include "testdlg.h"
  6. #include "MyMdi.H"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // testdlg
  14. IMPLEMENT_DYNCREATE(testdlg, CDialog)
  15. testdlg::testdlg()
  16. : CDialog(testdlg::IDD)
  17. {
  18. //{{AFX_DATA_INIT(testdlg)
  19. // NOTE: the ClassWizard will add member initialization here
  20. //}}AFX_DATA_INIT
  21. }
  22. testdlg::~testdlg()
  23. {
  24. }
  25. void testdlg::DoDataExchange(CDataExchange* pDX)
  26. {
  27. CDialog::DoDataExchange(pDX);
  28. //{{AFX_DATA_MAP(testdlg)
  29. // NOTE: the ClassWizard will add DDX and DDV calls here
  30. //}}AFX_DATA_MAP
  31. }
  32. BEGIN_MESSAGE_MAP(testdlg, CDialog)
  33. //{{AFX_MSG_MAP(testdlg)
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // testdlg diagnostics
  38. #ifdef _DEBUG
  39. void testdlg::AssertValid() const
  40. {
  41. CDialog::AssertValid();
  42. }
  43. void testdlg::Dump(CDumpContext& dc) const
  44. {
  45. CDialog::Dump(dc);
  46. }
  47. #endif //_DEBUG
  48. /////////////////////////////////////////////////////////////////////////////
  49. // testdlg message handlers
  50. void testdlg::OnCancel()
  51. {
  52. // TODO: Add your control notification handler code here
  53. GetParent()->SendMessage(WM_CLOSE);
  54. }
  55. void testdlg::OnOK()
  56. {
  57. // TODO: Add your control notification handler code here
  58. GetParent()->SendMessage(WM_CLOSE);
  59. }
  60. BOOL testdlg::OnInitDialog()
  61. {
  62. CDialog::OnInitDialog();
  63. // TODO: Add extra initialization here
  64. CMyMdi Mdi;
  65. Mdi.SetSubView((CWnd*)GetParent(), (CWnd*)this);
  66. // Here we create the outbar control using the splitter as its parent
  67. // and setting its id to the first pane.
  68. return TRUE; // return TRUE unless you set the focus to a control
  69. // EXCEPTION: OCX Property Pages should return FALSE
  70. }