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.

56 lines
1.4 KiB

  1. // HttpAdvancedDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "snapin.h"
  5. #include "HttpAdvancedDlg.h"
  6. #include <mmc.h>
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CHttpAdvancedDlg dialog
  14. CHttpAdvancedDlg::CHttpAdvancedDlg(CWnd* pParent /*=NULL*/)
  15. : CDialog(CHttpAdvancedDlg::IDD, pParent)
  16. {
  17. //{{AFX_DATA_INIT(CHttpAdvancedDlg)
  18. m_bFollowRedirects = TRUE;
  19. m_sHTTPMethod = _T("GET");
  20. m_sExtraHeaders = _T("");
  21. m_sPostData = _T("");
  22. //}}AFX_DATA_INIT
  23. }
  24. void CHttpAdvancedDlg::DoDataExchange(CDataExchange* pDX)
  25. {
  26. CDialog::DoDataExchange(pDX);
  27. //{{AFX_DATA_MAP(CHttpAdvancedDlg)
  28. DDX_Check(pDX, IDC_CHECK_FOLLOW_REDIRECTS, m_bFollowRedirects);
  29. DDX_CBString(pDX, IDC_COMBO_HTTP_METHOD, m_sHTTPMethod);
  30. DDX_Text(pDX, IDC_EDIT_EXTRA_HEADERS, m_sExtraHeaders);
  31. DDX_Text(pDX, IDC_EDIT_POST_DATA, m_sPostData);
  32. //}}AFX_DATA_MAP
  33. }
  34. BEGIN_MESSAGE_MAP(CHttpAdvancedDlg, CDialog)
  35. //{{AFX_MSG_MAP(CHttpAdvancedDlg)
  36. ON_BN_CLICKED(IDC_BUTTON_HELP, OnButtonHelp)
  37. //}}AFX_MSG_MAP
  38. END_MESSAGE_MAP()
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CHttpAdvancedDlg message handlers
  41. void CHttpAdvancedDlg::OnButtonHelp()
  42. {
  43. CString sHelpTopic = _T("HMon21.chm::/dDEadv.htm");
  44. MMCPropertyHelp((LPTSTR)(LPCTSTR)sHelpTopic);
  45. }