Leaked source code of windows server 2003
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.

84 lines
1.8 KiB

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