Counter Strike : Global Offensive Source Code
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.

62 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // PakFrame.cpp : implementation file
  9. //
  10. #include "stdafx.h"
  11. #include "hammer.h"
  12. #include "PakFrame.h"
  13. #include "PakDoc.h"
  14. #include "PakViewDirec.h"
  15. #include "PakViewFiles.h"
  16. #ifdef _DEBUG
  17. #define new DEBUG_NEW
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CPakFrame
  23. IMPLEMENT_DYNCREATE(CPakFrame, CMDIChildWnd)
  24. CPakFrame::CPakFrame()
  25. {
  26. }
  27. CPakFrame::~CPakFrame()
  28. {
  29. }
  30. BEGIN_MESSAGE_MAP(CPakFrame, CMDIChildWnd)
  31. //{{AFX_MSG_MAP(CPakFrame)
  32. // NOTE - the ClassWizard will add and remove mapping macros here.
  33. //}}AFX_MSG_MAP
  34. END_MESSAGE_MAP()
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CPakFrame message handlers
  37. BOOL CPakFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
  38. {
  39. if(!SplitWnd.CreateStatic(this, 1, 2))
  40. return FALSE;
  41. RECT r;
  42. GetClientRect(&r);
  43. // create panes
  44. SplitWnd.CreateView(0, 0, RUNTIME_CLASS(CPakViewDirec),
  45. CSize(150, r.bottom), pContext);
  46. SplitWnd.CreateView(0, 1, RUNTIME_CLASS(CPakViewFiles),
  47. CSize(300, r.bottom), pContext);
  48. return TRUE;
  49. }