Team Fortress 2 Source Code as on 22/4/2020
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.

80 lines
1.7 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // PakViewDirec.cpp : implementation file
  9. //
  10. #include "stdafx.h"
  11. #include "hammer.h"
  12. #include "PakDoc.h"
  13. #include "PakViewDirec.h"
  14. #ifdef _DEBUG
  15. #define new DEBUG_NEW
  16. #undef THIS_FILE
  17. static char THIS_FILE[] = __FILE__;
  18. #endif
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CPakViewDirec
  21. IMPLEMENT_DYNCREATE(CPakViewDirec, CTreeView)
  22. CPakViewDirec::CPakViewDirec()
  23. {
  24. }
  25. CPakViewDirec::~CPakViewDirec()
  26. {
  27. }
  28. BEGIN_MESSAGE_MAP(CPakViewDirec, CTreeView)
  29. //{{AFX_MSG_MAP(CPakViewDirec)
  30. // NOTE - the ClassWizard will add and remove mapping macros here.
  31. //}}AFX_MSG_MAP
  32. END_MESSAGE_MAP()
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CPakViewDirec drawing
  35. void CPakViewDirec::OnDraw(CDC* pDC)
  36. {
  37. CPakDoc* pDoc = GetDocument();
  38. // TODO: add draw code here
  39. }
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CPakViewDirec diagnostics
  42. #ifdef _DEBUG
  43. void CPakViewDirec::AssertValid() const
  44. {
  45. CTreeView::AssertValid();
  46. }
  47. void CPakViewDirec::Dump(CDumpContext& dc) const
  48. {
  49. CTreeView::Dump(dc);
  50. }
  51. #endif //_DEBUG
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CPakViewDirec message handlers
  54. void CPakViewDirec::OnInitialUpdate()
  55. {
  56. CTreeView::OnInitialUpdate();
  57. CTreeCtrl &tc = GetTreeCtrl();
  58. // modify the tree control's attributes
  59. DWORD dwStyle = GetWindowLong(tc.m_hWnd, GWL_STYLE);
  60. SetWindowLong(tc.m_hWnd, GWL_STYLE, dwStyle | TVS_HASLINES);
  61. // set the image list
  62. }