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.

78 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // MapErrorsDlg.cpp : implementation file
  9. //
  10. #include "stdafx.h"
  11. #include "hammer.h"
  12. #include "MapErrorsDlg.h"
  13. #include "Error3d.h"
  14. // memdbgon must be the last include file in a .cpp file!!!
  15. #include <tier0/memdbgon.h>
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CMapErrorsDlg dialog
  18. CMapErrorsDlg::CMapErrorsDlg(CWnd* pParent /*=NULL*/)
  19. : CDialog(CMapErrorsDlg::IDD, pParent)
  20. {
  21. //{{AFX_DATA_INIT(CMapErrorsDlg)
  22. // NOTE: the ClassWizard will add member initialization here
  23. //}}AFX_DATA_INIT
  24. }
  25. void CMapErrorsDlg::DoDataExchange(CDataExchange* pDX)
  26. {
  27. CDialog::DoDataExchange(pDX);
  28. //{{AFX_DATA_MAP(CMapErrorsDlg)
  29. DDX_Control(pDX, IDC_ERRORS, m_cErrors);
  30. //}}AFX_DATA_MAP
  31. }
  32. BEGIN_MESSAGE_MAP(CMapErrorsDlg, CDialog)
  33. //{{AFX_MSG_MAP(CMapErrorsDlg)
  34. ON_BN_CLICKED(IDC_CLEAR, OnClear)
  35. ON_LBN_DBLCLK(IDC_ERRORS, OnDblclkErrors)
  36. ON_BN_CLICKED(IDC_VIEW, OnView)
  37. //}}AFX_MSG_MAP
  38. END_MESSAGE_MAP()
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CMapErrorsDlg message handlers
  41. void CMapErrorsDlg::OnClear()
  42. {
  43. }
  44. void CMapErrorsDlg::OnDblclkErrors()
  45. {
  46. }
  47. void CMapErrorsDlg::OnView()
  48. {
  49. }
  50. BOOL CMapErrorsDlg::OnInitDialog()
  51. {
  52. CDialog::OnInitDialog();
  53. // fill list with errors
  54. error3d * pError = Enum3dErrors(TRUE);
  55. while(pError)
  56. {
  57. m_cErrors.AddString(pError->pszReason);
  58. m_cErrors.SetItemDataPtr(m_cErrors.GetCount()-1, PVOID(pError));
  59. pError = Enum3dErrors();
  60. }
  61. return TRUE;
  62. }