-
Notifications
You must be signed in to change notification settings - Fork 168
/
Copy pathChartRealTimeView.h
32 lines (27 loc) · 990 Bytes
/
ChartRealTimeView.h
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
#pragma once
#include "ChartDirector\chartviewer.h"
#include "ChartDirector\FinanceChart.h"
#include "GeneratePeriodicRefresh.h"
#include "ChartRealTimeModel.h"
#include <string>
// code from here will morph for use by CChartViewPort
class CChartRealTimeView :
public CChartViewer {
public:
CChartRealTimeView( CChartRealTimeModel *pModel );
virtual ~CChartRealTimeView();
//void SetModel( CChartRealTimeModel *pModel ) { m_pModel = pModel; };
void SetChartDimensions( unsigned int width, unsigned int height);
void SetChartTitle( std::string sChartTitle ) { m_sChartTitle = sChartTitle; };
void HandleBarCompleted(CChartRealTimeModel *model);
protected:
CChartRealTimeModel *m_pModel;
unsigned int m_nChartWidth;
unsigned int m_nChartHeight;
bool m_bModelChanged;
std::string m_sChartTitle;
CGeneratePeriodicRefresh m_refresh;
void HandlePeriodicRefresh( CGeneratePeriodicRefresh *pMsg );
DECLARE_MESSAGE_MAP()
private:
};