?? globaldisp.h
字號:
#if !defined(AFX_GLOBALDISP_H__93C0C50B_B8BA_461B_B89C_B7028E9631C0__INCLUDED_)
#define AFX_GLOBALDISP_H__93C0C50B_B8BA_461B_B89C_B7028E9631C0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GlobalDisp.h : header file
//
#include "mcdsDoc.h"
/////////////////////////////////////////////////////////////////////////////
// CGlobalDisp view
class CGlobalDisp : public CView
{
protected:
CGlobalDisp(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CGlobalDisp)
// Attributes
public:
CMcdsDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGlobalDisp)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CGlobalDisp();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CPoint leftPoint;
CPoint rightPoint;
double scalex(CRect rect);//每道多少像素,中間函數
double scaley(CRect rect);//每計數多少像素,中間函數
CString Point2Channel(CRect rect,CPoint point);//將點的坐標轉換為道數
CPoint Channel2Point(CRect rect,CString channel);//將道數轉換為最上面的點
CPoint Data2Point(CRect rect,int i);//將全局變量中的數據轉換為點的坐標
int PickMaxChannel();
CString AutoSetRange();
// Generated message map functions
protected:
//{{AFX_MSG(CGlobalDisp)
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
#ifndef _DEBUG // debug version in mcdsView.cpp
inline CMcdsDoc* CGlobalDisp::GetDocument()
{ return (CMcdsDoc*)m_pDocument; }
#endif
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GLOBALDISP_H__93C0C50B_B8BA_461B_B89C_B7028E9631C0__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -