⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cgraphdlg.h

📁 这是本人两年前兼职为某个公司做的石油钻进设计软件
💻 H
字号:
// CGraphDlg.h : header file
//

#if !defined(AFX_CGRAPHDLG_H__0071CF37_7A62_11D4_BF1E_00105A86943C__INCLUDED_)
#define AFX_CGRAPHDLG_H__0071CF37_7A62_11D4_BF1E_00105A86943C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCGraphDlg dialog

#include "ChartBase.h"

class CCGraphDlg : public CDialog
{
// Construction
public:
	CCGraphDlg(CWnd* pParent = NULL);	                                 // standard constructor
	~CCGraphDlg();
    BOOL Create();    
	void MoveTipDlg(CRect DlgLoc, CString tipInfo);                      // 移动提示对话框
	void HideTipDlg();                                                   // 隐藏提示对话框
	void SetChartPos();                                                  // 设置绘制区域位置
	void DrawGraph(sGraphData *pGraphData, int iPrevNum, int iGraphLoc); // 绘制一幅图形
	void PrintChart();
	void PreviewChart();
	void SaveAsBitmap(CString strFileName);
public:
	CString m_cGraphFileName;
	CChartBase   m_chart;
	CTipDlg      *m_pTipDlg;                                             // 提示对话框
	double       *m_pMinMax;

// Dialog Data
	//{{AFX_DATA(CCGraphDlg)
	enum { IDD = IDD_CGRAPH_DIALOG };
	CWnd*       m_pParent;
	int         m_nID;
//	CTChart	m_chart;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCGraphDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	afx_msg void OnContextMenu(CWnd*, CPoint point);
	HICON m_hIcon;
	HACCEL  m_hAccel;

	// Generated message map functions
	//{{AFX_MSG(CCGraphDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CGRAPHDLG_H__0071CF37_7A62_11D4_BF1E_00105A86943C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -