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.

124 lines
2.8 KiB

  1. // ISAdmvw.cpp : implementation of the CISAdminView class
  2. //
  3. #include "stdafx.h"
  4. #include "ISAdmin.h"
  5. #include "ISAdmdoc.h"
  6. #include "ISAdmvw.h"
  7. #include "mimemap1.h"
  8. #include "scrmap1.h"
  9. #include "ssl1.h"
  10. //#include "combut1.h"
  11. #ifdef _DEBUG
  12. #undef THIS_FILE
  13. static char BASED_CODE THIS_FILE[] = __FILE__;
  14. #endif
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CISAdminView
  17. IMPLEMENT_DYNCREATE(CISAdminView, CView)
  18. BEGIN_MESSAGE_MAP(CISAdminView, CView)
  19. //{{AFX_MSG_MAP(CISAdminView)
  20. // NOTE - the ClassWizard will add and remove mapping macros here.
  21. // DO NOT EDIT what you see in these blocks of generated code!
  22. //}}AFX_MSG_MAP
  23. // Standard printing commands
  24. ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
  25. ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
  26. END_MESSAGE_MAP()
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CISAdminView construction/destruction
  29. CISAdminView::CISAdminView()
  30. {
  31. // TODO: add construction code here
  32. }
  33. CISAdminView::~CISAdminView()
  34. {
  35. }
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CISAdminView drawing
  38. void CISAdminView::OnDraw(CDC* pDC)
  39. {
  40. CISAdminDoc* pDoc = GetDocument();
  41. ASSERT_VALID(pDoc);
  42. /*
  43. CPropertySheet s(_T("Web Settings"));
  44. MIMEMAP1 MimePage;
  45. s.AddPage(&MimePage);
  46. ScrMap1 ScriptPage;
  47. s.AddPage(&ScriptPage);
  48. SSL1 SSLPage;
  49. s.AddPage(&SSLPage);
  50. s.DoModal();
  51. */
  52. /*
  53. CButton *pComButton;
  54. DWORD dwBtnStyle = WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON;
  55. const RECT rect = {20, 20, 100, 100};
  56. pComButton->Create("Common", dwBtnStyle, rect, , 12345);
  57. */
  58. // TODO: add draw code for native data here
  59. }
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CISAdminView printing
  62. BOOL CISAdminView::OnPreparePrinting(CPrintInfo* pInfo)
  63. {
  64. // default preparation
  65. return DoPreparePrinting(pInfo);
  66. }
  67. void CISAdminView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  68. {
  69. // TODO: add extra initialization before printing
  70. }
  71. void CISAdminView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  72. {
  73. // TODO: add cleanup after printing
  74. }
  75. /////////////////////////////////////////////////////////////////////////////
  76. // CISAdminView diagnostics
  77. #ifdef _DEBUG
  78. void CISAdminView::AssertValid() const
  79. {
  80. CView::AssertValid();
  81. }
  82. void CISAdminView::Dump(CDumpContext& dc) const
  83. {
  84. CView::Dump(dc);
  85. }
  86. CISAdminDoc* CISAdminView::GetDocument() // non-debug version is inline
  87. {
  88. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CISAdminDoc)));
  89. return (CISAdminDoc*)m_pDocument;
  90. }
  91. #endif //_DEBUG
  92. /////////////////////////////////////////////////////////////////////////////
  93. // CISAdminView message handlers