📄 wgl_32view.h
字号:
#if !defined(AFX_WGL_32VIEW_H__3A466483_1C32_11D2_B299_B189E44C3C63__INCLUDED_)
#define AFX_WGL_32VIEW_H__3A466483_1C32_11D2_B299_B189E44C3C63__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// Wgl_32View.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CWgl_32View view
class CWgl_32View : public CView //CScrollView
{
CPen AxialPen[5];
CPen ShortPen;
CPen LPen, RPen;
HCURSOR HOldCursor;
int nxExpandPre,nXExpandIni;
CPoint ptPre,ptIni;
double m_MaxFactorX,m_MinFactorX;
BOOL bZoomIn,bZoomOut;
BOOL bEditYcursor,bShortSeg;
BOOL bVExpand,bXExpand,bCopyArea;
BOOL bMove,bCopyCurve,bDeleteCurve;
unsigned short nWhichChannel;
long nSelectCurve;
public:
HCURSOR m_HHExpand;
HCURSOR m_HVExpand;
HCURSOR m_HYValue;
HCURSOR m_HBeforeMove;
HCURSOR m_HMoving;
public:
int nstartini;
LOGFONT logfont;
CFont m_hPrtFont;
BOOL bCPUTotalPrint;
BOOL bCPUShortPrint;
BOOL bSelectTotalPrint;
BOOL bSelectShortPrint;
unsigned long SampNumIndex;
int nPDigNUM,nPAnaNUM,PrintChannelNum;
short int *PrintIndex;
BOOL bLButtonDown;
int nRemaindCurve;
public:
void SetResynScroll(int cx,int cy);
int GetCurveNumberIndex(long Number);
private:
void InvertRect();
BOOL SetPrintIndex(int nCPU);
BOOL SetPrintIndex(CStringArray* pStrArray);
long GetPrintPos(unsigned long From,unsigned long End);
int GetCurveNumber(CPoint point);
int GetCurveDisplayIndex(long Number);
BOOL GetCurveValue(int PointY, double& value);
CPen *SelectDrawAxialPen(CDC *pDC,double SampRate);
void CopyScrnToClipBoard(CPoint ptIni,CPoint ptEnd);
void GetSampRateChar(double SampRate, char *strTemp);
BOOL IsSpecRate(unsigned long xi,WORD m_NumRates,SampRates* m_pSampRates);
unsigned long GetStartNumber(SampRates* pSampRates,int NumRates,unsigned long sampnum);
CPen *SelectDrawAxialPen(CDC* pDC,SampRates* pSampRates,WORD m_NumRates,unsigned long lli);
protected:
CWgl_32View(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CWgl_32View)
// Attributes
public:
CWgl_32Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWgl_32View)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnInitialUpdate(); // first time after construct
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CWgl_32View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CWgl_32View)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnUpdateEditZoomin(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditZoomout(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditMove(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditXexpand(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditYcursor(CCmdUI* pCmdUI);
afx_msg void OnEditVexpand();
afx_msg void OnEditXexpand();
afx_msg void OnEditZoomin();
afx_msg void OnEditZoomout();
afx_msg void OnEditMove();
afx_msg void OnEditYcursor();
afx_msg void OnEditRestore();
afx_msg void OnFilePrint();
afx_msg void OnFilePrintPreview();
afx_msg void OnFilePrintselect();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnTransSend();
afx_msg void OnAnalysisSingle();
afx_msg void OnAnalysisTotal();
afx_msg void OnDestroy();
afx_msg void OnUpdateEditVexpand(CCmdUI* pCmdUI);
afx_msg void OnShortseg();
afx_msg void OnUpdateShortseg(CCmdUI* pCmdUI);
afx_msg void OnFileSelprt();
afx_msg void OnEditCopyCurve();
afx_msg void OnUpdateEditCopyCurve(CCmdUI* pCmdUI);
afx_msg void OnEditDelete();
afx_msg void OnUpdateEditDelete(CCmdUI* pCmdUI);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnEditCopyArea();
afx_msg void OnUpdateEditCopyArea(CCmdUI* pCmdUI);
afx_msg void OnUpdateDeleteSubCurve(CCmdUI* pCmdUI);
afx_msg void OnDeleteSubCurve();
afx_msg void OnFileShrtCPU();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WGL_32VIEW_H__3A466483_1C32_11D2_B299_B189E44C3C63__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -