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.

106 lines
2.2 KiB

  1. /*******************************************************************************
  2. *
  3. * blankvw.cpp
  4. *
  5. * implementation of the CBlankView class
  6. *
  7. * copyright notice: Copyright 1997, Citrix Systems Inc.
  8. * Copyright (c) 1998 - 1999 Microsoft Corporation
  9. *
  10. * $Author: butchd $ Don Messerli
  11. *
  12. * $Log: M:\NT\PRIVATE\UTILS\CITRIX\WINUTILS\WINADMIN\VCS\BLANKVW.CPP $
  13. *
  14. * Rev 1.0 30 Jul 1997 17:11:04 butchd
  15. * Initial revision.
  16. *
  17. *******************************************************************************/
  18. #include "stdafx.h"
  19. #include "winadmin.h"
  20. #include "blankvw.h"
  21. #ifdef _DEBUG
  22. #define new DEBUG_NEW
  23. #undef THIS_FILE
  24. static char THIS_FILE[] = __FILE__;
  25. #endif
  26. ////////////////////////////
  27. // MESSAGE MAP: CBlankView
  28. //
  29. IMPLEMENT_DYNCREATE(CBlankView, CView)
  30. BEGIN_MESSAGE_MAP(CBlankView, CView)
  31. //{{AFX_MSG_MAP(CBlankView)
  32. // NOTE - the ClassWizard will add and remove mapping macros here.
  33. //}}AFX_MSG_MAP
  34. END_MESSAGE_MAP()
  35. /////////////////////////
  36. // F'N: CBlankView ctor
  37. //
  38. // - the m_id member var has no implicit meaning; it's just a place
  39. // to stick a number if you want to show a CBlankView someplace
  40. // and want a little clue as to who caused it to appear or something
  41. //
  42. CBlankView::CBlankView()
  43. {
  44. } // end CBlankView ctor
  45. /////////////////////////
  46. // F'N: CBlankView dtor
  47. //
  48. CBlankView::~CBlankView()
  49. {
  50. } // end CBlankView dtor
  51. #ifdef _DEBUG
  52. /////////////////////////////////
  53. // F'N: CBlankView::AssertValid
  54. //
  55. void CBlankView::AssertValid() const
  56. {
  57. CView::AssertValid();
  58. } // end CBlankView::AssertValid
  59. //////////////////////////
  60. // F'N: CBlankView::Dump
  61. //
  62. void CBlankView::Dump(CDumpContext& dc) const
  63. {
  64. CView::Dump(dc);
  65. } // end CBlankView::Dump
  66. #endif //_DEBUG
  67. ////////////////////////////
  68. // F'N: CBlankView::OnDraw
  69. //
  70. // - the text "CBlankView ID #x" is always displayed in medium
  71. // gray in the center of the view, where 'x' is the current
  72. // value of m_id
  73. //
  74. void CBlankView::OnDraw(CDC* pDC)
  75. {
  76. CRect rect;
  77. GetClientRect(&rect);
  78. pDC->SetTextColor(RGB(160, 160, 160));
  79. pDC->SetBkMode(TRANSPARENT);
  80. // CString szTemp;
  81. // szTemp.Format("CBlankView ID #%d", m_id);
  82. // pDC->DrawText(szTemp, -1, &rect, DT_SINGLELINE | DT_CENTER | DT_VCENTER);
  83. } // end CBlankView::OnDraw