📄 barpieview.h
字号:
#if !defined(AFX_BARPIEVIEW_H__93014120_19F2_11D4_99BD_008A08C10000__INCLUDED_)
#define AFX_BARPIEVIEW_H__93014120_19F2_11D4_99BD_008A08C10000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BarPieView.h : header file
//
#include "BarLine.h"
#include "Pie.h"
/////////////////////////////////////////////////////////////////////////////
// CBarPieView view
class CBarPieView : public CView
{
protected:
CBarPieView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CBarPieView)
// Attributes
public:
CGrDemoDoc* GetDocument();
CBarLine<float> m_BarLine;
CPie<float> m_Pie;
CBarLine<float>* m_pGraph;
enum Types { LINE, BAR, BAR3D, GANTTBAR, PIE, CUTPIE };
bool m_bMemDraw;
bool m_bTitle;
bool m_bLegend;
bool m_bBoundary;
bool m_bGrid;
bool m_bVertical;
COLORREF m_nBkColor;
Types m_Types;
// Operations
public:
void Redraw();
void DrawFrame(CRect& rect, COLORREF cr, const char* Title);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBarPieView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CBarPieView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CBarPieView)
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnTypeGrid();
afx_msg void OnUpdateTypeGrid(CCmdUI* pCmdUI);
afx_msg void OnTypeBoundary();
afx_msg void OnUpdateTypeBoundary(CCmdUI* pCmdUI);
afx_msg void OnTypeLegend();
afx_msg void OnUpdateTypeLegend(CCmdUI* pCmdUI);
afx_msg void OnTypeBackcolor();
afx_msg void OnUpdateTypeBackcolor(CCmdUI* pCmdUI);
afx_msg void OnTypeTitle();
afx_msg void OnUpdateTypeTitle(CCmdUI* pCmdUI);
afx_msg void OnTypeMemorydraw();
afx_msg void OnUpdateTypeMemorydraw(CCmdUI* pCmdUI);
afx_msg void OnTypesLine();
afx_msg void OnUpdateTypesLine(CCmdUI* pCmdUI);
afx_msg void OnTypesBar();
afx_msg void OnUpdateTypesBar(CCmdUI* pCmdUI);
afx_msg void OnTypesBar3d();
afx_msg void OnUpdateTypesBar3d(CCmdUI* pCmdUI);
afx_msg void OnTypesGanttbar();
afx_msg void OnUpdateTypesGanttbar(CCmdUI* pCmdUI);
afx_msg void OnTypesPie();
afx_msg void OnUpdateTypesPie(CCmdUI* pCmdUI);
afx_msg void OnTypesCutpie();
afx_msg void OnUpdateTypesCutpie(CCmdUI* pCmdUI);
afx_msg void OnDirectionVertical();
afx_msg void OnUpdateDirectionVertical(CCmdUI* pCmdUI);
afx_msg void OnDirectionHorizontal();
afx_msg void OnUpdateDirectionHorizontal(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in GrDemoView.cpp
inline CGrDemoDoc* CBarPieView::GetDocument()
{ return (CGrDemoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BARPIEVIEW_H__93014120_19F2_11D4_99BD_008A08C10000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -