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.

77 lines
1.5 KiB

  1. // addmime.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ISAdmin.h"
  5. #include "addmime.h"
  6. #ifdef _DEBUG
  7. #undef THIS_FILE
  8. static char BASED_CODE THIS_FILE[] = __FILE__;
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CAddMime dialog
  12. CAddMime::CAddMime(CWnd* pParent /*=NULL*/)
  13. : CDialog(CAddMime::IDD, pParent)
  14. {
  15. //{{AFX_DATA_INIT(CAddMime)
  16. m_strFileExtension = _T("");
  17. m_strGopherType = _T("");
  18. m_strImageFile = _T("");
  19. m_strMimeType = _T("");
  20. //}}AFX_DATA_INIT
  21. }
  22. void CAddMime::DoDataExchange(CDataExchange* pDX)
  23. {
  24. CDialog::DoDataExchange(pDX);
  25. //{{AFX_DATA_MAP(CAddMime)
  26. DDX_Text(pDX, IDC_ADDMIMEFILEEXTENSIONDATA1, m_strFileExtension);
  27. DDX_Text(pDX, IDC_ADDMIMEGOPHERTYPEDATA1, m_strGopherType);
  28. DDX_Text(pDX, IDC_ADDMIMEIMAGEFILEDATA1, m_strImageFile);
  29. DDX_Text(pDX, IDC_ADDMIMEMIMETYPEDATA1, m_strMimeType);
  30. //}}AFX_DATA_MAP
  31. }
  32. BEGIN_MESSAGE_MAP(CAddMime, CDialog)
  33. //{{AFX_MSG_MAP(CAddMime)
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CAddMime message handlers
  38. void CAddMime::OnOK()
  39. {
  40. // TODO: Add extra validation here
  41. CDialog::OnOK();
  42. }
  43. ///////////////////////////////////////////////////////////////////////////
  44. // Other Public Functions
  45. LPCTSTR CAddMime::GetFileExtension()
  46. {
  47. return (m_strFileExtension);
  48. }
  49. LPCTSTR CAddMime::GetGopherType()
  50. {
  51. return (m_strGopherType);
  52. }
  53. LPCTSTR CAddMime::GetImageFile()
  54. {
  55. return (m_strImageFile);
  56. }
  57. LPCTSTR CAddMime::GetMimeType()
  58. {
  59. return (m_strMimeType);
  60. }