blob: b8fcb88222939d5b4691eb758a8a8e06a98b762b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#if !defined(AFX_GRAPHCONTROL_H__9B50B827_F24D_4C5A_BA6E_A591A64E404D__INCLUDED_)
#define AFX_GRAPHCONTROL_H__9B50B827_F24D_4C5A_BA6E_A591A64E404D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GraphControl.h : header file
//
#include "utlvector.h"
class CGraphEntry
{
public:
CGraphEntry() :
m_msTime( 0 ),
m_nBytesSent( 0 ),
m_nBytesReceived( 0 )
{
}
int m_msTime;
int m_nBytesSent;
int m_nBytesReceived;
};
/////////////////////////////////////////////////////////////////////////////
// CGraphControl window
class CGraphControl : public CWnd
{
// Construction
public:
CGraphControl();
// Attributes
public:
// Operations
public:
void Clear();
// This function assumes you've already run the query and the graph_entry's are selected in.
void Fill( CUtlVector<CGraphEntry> &entries );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGraphControl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CGraphControl();
protected:
void Render( CDC *pDC );
CUtlVector<CGraphEntry> m_Entries;
// Generated message map functions
protected:
//{{AFX_MSG(CGraphControl)
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GRAPHCONTROL_H__9B50B827_F24D_4C5A_BA6E_A591A64E404D__INCLUDED_)
|