📄 graph.h
字号:
#if !defined(AFX_GRAPH_H__0BF34F55_5441_11D5_B5A0_9B983C690D43__INCLUDED_)
#define AFX_GRAPH_H__0BF34F55_5441_11D5_B5A0_9B983C690D43__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Graph.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CGraph dialog
class CGraph : public CDialog
{
// Construction
public:
CGraph(CWnd* pParent = NULL); // standard constructor
~CGraph();
// Dialog Data
//{{AFX_DATA(CGraph)
enum { IDD = IDD_G };
CString m_sMsgPos;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGraph)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CGraph)
afx_msg void OnPaint();
afx_msg void OnCancel();
afx_msg void OnBtnClear();
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
BOOL m_bShowGraph; //图形窗口是否显示
int m_bInitOK; //初始化是否完成
double m_lfFactor; //绘图比例
private:
int m_iLastPosX; //上一个位置
int m_iLastPosY;
int m_CenX; //坐标原点
int m_CenY;
public:
void ClearAll();
void DrawAxes();
void MoveToPos(long x,long y);
void LineToPos(long x,long y);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GRAPH_H__0BF34F55_5441_11D5_B5A0_9B983C690D43__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -