diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/pakviewdirec.cpp | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/pakviewdirec.cpp')
| -rw-r--r-- | hammer/pakviewdirec.cpp | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/hammer/pakviewdirec.cpp b/hammer/pakviewdirec.cpp new file mode 100644 index 0000000..a9316a1 --- /dev/null +++ b/hammer/pakviewdirec.cpp @@ -0,0 +1,80 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +// PakViewDirec.cpp : implementation file +// + +#include "stdafx.h" +#include "hammer.h" +#include "PakDoc.h" +#include "PakViewDirec.h" + +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + +///////////////////////////////////////////////////////////////////////////// +// CPakViewDirec + +IMPLEMENT_DYNCREATE(CPakViewDirec, CTreeView) + +CPakViewDirec::CPakViewDirec() +{ +} + +CPakViewDirec::~CPakViewDirec() +{ +} + + +BEGIN_MESSAGE_MAP(CPakViewDirec, CTreeView) + //{{AFX_MSG_MAP(CPakViewDirec) + // NOTE - the ClassWizard will add and remove mapping macros here. + //}}AFX_MSG_MAP +END_MESSAGE_MAP() + +///////////////////////////////////////////////////////////////////////////// +// CPakViewDirec drawing + +void CPakViewDirec::OnDraw(CDC* pDC) +{ + CPakDoc* pDoc = GetDocument(); + // TODO: add draw code here +} + +///////////////////////////////////////////////////////////////////////////// +// CPakViewDirec diagnostics + +#ifdef _DEBUG +void CPakViewDirec::AssertValid() const +{ + CTreeView::AssertValid(); +} + +void CPakViewDirec::Dump(CDumpContext& dc) const +{ + CTreeView::Dump(dc); +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CPakViewDirec message handlers + +void CPakViewDirec::OnInitialUpdate() +{ + CTreeView::OnInitialUpdate(); + CTreeCtrl &tc = GetTreeCtrl(); + + // modify the tree control's attributes + DWORD dwStyle = GetWindowLong(tc.m_hWnd, GWL_STYLE); + SetWindowLong(tc.m_hWnd, GWL_STYLE, dwStyle | TVS_HASLINES); + + // set the image list + +} |