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.

83 lines
2.0 KiB

  1. // ClientConsoleView.cpp : implementation of the CClientConsoleView class
  2. //
  3. //
  4. // This view is used when the following nodes are selected in the
  5. // left (tree) view:
  6. // - Root of tree
  7. // - A server (not a folder in the server)
  8. //
  9. #include "stdafx.h"
  10. #define __FILE_ID__ 3
  11. #ifdef _DEBUG
  12. #define new DEBUG_NEW
  13. #undef THIS_FILE
  14. static char THIS_FILE[] = __FILE__;
  15. #endif
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CClientConsoleView
  18. IMPLEMENT_DYNCREATE(CClientConsoleView, CListView)
  19. BEGIN_MESSAGE_MAP(CClientConsoleView, CListView)
  20. //{{AFX_MSG_MAP(CClientConsoleView)
  21. //}}AFX_MSG_MAP
  22. END_MESSAGE_MAP()
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CClientConsoleView construction/destruction
  25. CClientConsoleView::CClientConsoleView()
  26. {}
  27. CClientConsoleView::~CClientConsoleView()
  28. {}
  29. BOOL CClientConsoleView::PreCreateWindow(CREATESTRUCT& cs)
  30. {
  31. return CListView::PreCreateWindow(cs);
  32. }
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CClientConsoleView drawing
  35. void CClientConsoleView::OnDraw(CDC* pDC)
  36. {
  37. CListView::OnDraw (pDC);
  38. }
  39. void CClientConsoleView::OnInitialUpdate()
  40. {
  41. CListView::OnInitialUpdate();
  42. CListCtrl& refCtrl = GetListCtrl();
  43. refCtrl.SetExtendedStyle (LVS_EX_FULLROWSELECT | // Entire row is selected
  44. LVS_EX_INFOTIP); // Allow tooltips
  45. ModifyStyle(LVS_TYPEMASK, LVS_REPORT);
  46. }
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CClientConsoleView diagnostics
  49. #ifdef _DEBUG
  50. void CClientConsoleView::AssertValid() const
  51. {
  52. CListView::AssertValid();
  53. }
  54. void CClientConsoleView::Dump(CDumpContext& dc) const
  55. {
  56. CListView::Dump(dc);
  57. }
  58. CClientConsoleDoc* CClientConsoleView::GetDocument() // non-debug version is inline
  59. {
  60. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CClientConsoleDoc)));
  61. return (CClientConsoleDoc*)m_pDocument;
  62. }
  63. #endif //_DEBUG