Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.2 KiB

  1. // PropPageGenLogDump.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "emshell.h"
  5. #include "PropPageGenLogDump.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPropPageGenLogDump property page
  13. IMPLEMENT_DYNCREATE(CPropPageGenLogDump, CPropertyPage)
  14. CPropPageGenLogDump::CPropPageGenLogDump() : CPropertyPage(CPropPageGenLogDump::IDD)
  15. {
  16. //{{AFX_DATA_INIT(CPropPageGenLogDump)
  17. m_csDateTime = _T("");
  18. m_csDirectory = _T("");
  19. m_csFileSize = _T("");
  20. m_csFileName = _T("");
  21. //}}AFX_DATA_INIT
  22. m_pEmObj = NULL;
  23. m_bDeleteFile = FALSE;
  24. m_pParentPropSheet = NULL;
  25. }
  26. CPropPageGenLogDump::~CPropPageGenLogDump()
  27. {
  28. }
  29. void CPropPageGenLogDump::DoDataExchange(CDataExchange* pDX)
  30. {
  31. CPropertyPage::DoDataExchange(pDX);
  32. //{{AFX_DATA_MAP(CPropPageGenLogDump)
  33. DDX_Text(pDX, IDC_EDIT_DATETIME, m_csDateTime);
  34. DDX_Text(pDX, IDC_EDIT_DIRECTORY, m_csDirectory);
  35. DDX_Text(pDX, IDC_EDIT_FILE_SIZE, m_csFileSize);
  36. DDX_Text(pDX, IDC_EDIT_FILENAME, m_csFileName);
  37. //}}AFX_DATA_MAP
  38. }
  39. BEGIN_MESSAGE_MAP(CPropPageGenLogDump, CPropertyPage)
  40. //{{AFX_MSG_MAP(CPropPageGenLogDump)
  41. ON_BN_CLICKED(IDC_DELETE, OnDelete)
  42. //}}AFX_MSG_MAP
  43. END_MESSAGE_MAP()
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CPropPageGenLogDump message handlers
  46. BOOL CPropPageGenLogDump::OnInitDialog()
  47. {
  48. CPropertyPage::OnInitDialog();
  49. // TODO: Add extra initialization here
  50. //
  51. // a-mando
  52. //
  53. if( m_pEmObj ) {
  54. m_csFileName = m_pEmObj->szName;
  55. m_csDirectory = m_pEmObj->szSecName;
  56. if( m_pEmObj->dateStart ) {
  57. COleDateTime oleDtTm(m_pEmObj->dateStart);
  58. m_csDateTime = oleDtTm.Format(_T("%c"));
  59. }
  60. m_csFileSize.Format(_T("%d"), m_pEmObj->dwBucket1);
  61. UpdateData(FALSE);
  62. }
  63. // a-mando
  64. return TRUE; // return TRUE unless you set the focus to a control
  65. // EXCEPTION: OCX Property Pages should return FALSE
  66. }
  67. void CPropPageGenLogDump::OnDelete()
  68. {
  69. // TODO: Add your control notification handler code here
  70. m_bDeleteFile = TRUE;
  71. if( m_pParentPropSheet ) {
  72. m_pParentPropSheet->EndDialog(IDOK);
  73. }
  74. }