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.

62 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // OptionProperties.cpp : implementation file
  9. //
  10. #include "stdafx.h"
  11. #include "hammer.h"
  12. #include "OptionProperties.h"
  13. // memdbgon must be the last include file in a .cpp file!!!
  14. #include <tier0/memdbgon.h>
  15. /////////////////////////////////////////////////////////////////////////////
  16. // COptionProperties
  17. IMPLEMENT_DYNAMIC(COptionProperties, CPropertySheet)
  18. COptionProperties::COptionProperties(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
  19. :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
  20. {
  21. DoStandardInit();
  22. }
  23. COptionProperties::COptionProperties(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
  24. :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
  25. {
  26. DoStandardInit();
  27. }
  28. COptionProperties::~COptionProperties()
  29. {
  30. }
  31. BEGIN_MESSAGE_MAP(COptionProperties, CPropertySheet)
  32. //{{AFX_MSG_MAP(COptionProperties)
  33. ON_WM_CLOSE()
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // COptionProperties message handlers
  38. void COptionProperties::DoStandardInit()
  39. {
  40. AddPage(&Configs);
  41. AddPage(&General);
  42. AddPage(&View2D);
  43. AddPage(&View3D);
  44. AddPage(&Textures);
  45. AddPage(&Build);
  46. }
  47. void COptionProperties::OnClose()
  48. {
  49. CPropertySheet::OnClose();
  50. }