home *** CD-ROM | disk | FTP | other *** search
/ ftp.funduc.com / 2014.08.ftp.funduc.com.tar / ftp.funduc.com / fshedcode102502.zip / HexDumpDlg.cpp < prev    next >
C/C++ Source or Header  |  2001-11-06  |  1KB  |  60 lines

  1. // HexDumpDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "fshed.h"
  6. #include "HexDumpDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CHexDumpDlg dialog
  16.  
  17.  
  18. CHexDumpDlg::CHexDumpDlg(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CHexDumpDlg::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CHexDumpDlg)
  22.     m_nExportTo = 1;
  23.     m_strEndOffset = _T("");
  24.     m_strStartOffset = _T("");
  25.     //}}AFX_DATA_INIT
  26.    m_nStartOffset = m_nEndOffset = 0;
  27. }
  28.  
  29.  
  30. void CHexDumpDlg::DoDataExchange(CDataExchange* pDX)
  31. {
  32.     CDialog::DoDataExchange(pDX);
  33.     //{{AFX_DATA_MAP(CHexDumpDlg)
  34.     DDX_Radio(pDX, IDC_EXP2FILE_RB, m_nExportTo);
  35.     DDX_Text(pDX, IDC_END_OFFSET_ED, m_strEndOffset);
  36.     DDX_Text(pDX, IDC_START_OFFSET_ED, m_strStartOffset);
  37.     //}}AFX_DATA_MAP
  38. }
  39.  
  40.  
  41. BEGIN_MESSAGE_MAP(CHexDumpDlg, CDialog)
  42.     //{{AFX_MSG_MAP(CHexDumpDlg)
  43.     //}}AFX_MSG_MAP
  44. END_MESSAGE_MAP()
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CHexDumpDlg message handlers
  48.  
  49. BOOL CHexDumpDlg::OnInitDialog() 
  50. {
  51.     m_strStartOffset.Format(_T("x%x"), m_nStartOffset);
  52.     m_strEndOffset.Format(_T("x%x"), m_nEndOffset);
  53.     CDialog::OnInitDialog();
  54.     
  55.     // TODO: Add extra initialization here
  56.     
  57.     return TRUE;  // return TRUE unless you set the focus to a control
  58.                   // EXCEPTION: OCX Property Pages should return FALSE
  59. }
  60.