📄 chartwndbase.h
字号:
/************************************************************************************************
// $Header: /home/cvsroot/SoccerDoctor/Chart/ChartWndBase.h,v 1.1 2002/09/07 06:03:54 peter Exp $
//***********************************************************************************************
/************************************************************************************************/
/* */
/* File : ChartWndBase.h */
/* */
/* Purpose : base class for the four main windows contained within the CChartCtrl */
/* */
/* Author : Scott Pelger Date Created: 10JUN02 */
/* */
/* Revisions */
/* */
/* Engineer Date Description */
/* */
/* Scott Pelger 10JUN02 initial version */
/* */
/************************************************************************************************/
#if !defined(AFX_CHARTWNDBASE_H__E4D51A34_CD70_11D5_8037_8C7A05B7325A__INCLUDED_)
#define AFX_CHARTWNDBASE_H__E4D51A34_CD70_11D5_8037_8C7A05B7325A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChartWndBase.h : header file
//
#include "ChartConstants.h"
/////////////////////////////////////////////////////////////////////////////
// CChartWndBase window
class CChartWndBase : public CWnd
{
// Construction
public:
CChartWndBase();
// Attributes
public:
protected:
CRect m_rcClientRect;
COLORREF m_crWindowColor;
COLORREF m_crTextColor;
CFont* m_pFont;
// Operations
public:
virtual void SetWindowRect(CRect* pRect) {m_rcClientRect = *pRect;};
virtual BOOL SetFont(BYTE byPointSize, char* psFontName, BYTE byStyle=0);
virtual COLORREF SetTextColor(COLORREF crColor) {COLORREF crTempColor = m_crTextColor; m_crTextColor = crColor; return crTempColor;};
virtual COLORREF GetTextColor(void) {return m_crTextColor;};
virtual COLORREF SetWindowColor(COLORREF crColor) {COLORREF crTempColor = m_crWindowColor; m_crWindowColor = crColor; return crTempColor;};
virtual COLORREF GetWindowColor(void) {return m_crWindowColor;};
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChartWndBase)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CChartWndBase();
// Generated message map functions
protected:
//{{AFX_MSG(CChartWndBase)
afx_msg BOOL OnEraseBkgnd(CDC* pDC) {return TRUE;};
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHARTWNDBASE_H__E4D51A34_CD70_11D5_8037_8C7A05B7325A__INCLUDED_)
//***********************************************************************************************
// END OF FILE
// $Log: ChartWndBase.h,v $
// Revision 1.1 2002/09/07 06:03:54 peter
// 新的chart类,从别的地方拷来的
//
//***********************************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -