📄 cgeview.h
字号:
// cgeView.h : interface of the CCgeView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CGEVIEW_H__D9F73F4E_313A_11D3_A324_DC37BD699B39__INCLUDED_)
#define AFX_CGEVIEW_H__D9F73F4E_313A_11D3_A324_DC37BD699B39__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CCgeView : public CScrollView
{
protected: // create from serialization only
CCgeView();
DECLARE_DYNCREATE(CCgeView)
// Attributes
public:
CCgeDoc* GetDocument();
CCgeDoc* pDoc;
CDC m_MemDC;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCgeView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
void m_EditReset();
void m_Viewparfile();
void m_fill(bool up);
void cut(bool head);
int height;//动态滚动轴滚动条长度
bool up; //填充波形关键字
bool scrollkey;//是否在滚动
bool m_cutKey;//截取关键字
int checkup;//设置截取上半波
int checkdown;////设置截取下半波
bool head;
void fill(bool up);//填充函数
BOOL TimelabelKey; //???
void DrawTimeStep(CCgeDoc* pDoc,CDC* pDC);//???WHICH IS ?
BOOL m_isdtlKey; //
int m_nhscrollpos; //获得滚动的值
int m_nvscrollpos;
CBitmap m_Bitmap;
int m_nMaxX;
int m_nMaxY;
CRect rect;
CRect m_rect;
char m_svalu[10];//???
void DrawBasLine(CCgeDoc* pDoc,CDC* pDC);
void DrawScale(CDC* pDC,CCgeDoc* pDoc); //???可以不要?
boolean m_dtlBKey;
boolean m_dtlEKey;
boolean m_invertKey; //反相关键字
CPoint BPoint;//起始线坐标
CPoint EPoint;//终止线坐标
CPoint dBPoint;//???
CPoint dEPoint;//???
COLORREF m_dtlCr;//范围时标颜色
COLORREF m_gdlCr;//滚动时标颜色
CBrush NewBrush;
BOOL m_fillKey;//填充关键字
BOOL m_drawgdtlKey;//
bool baslineKey;
COLORREF m_baslineCr;
void m_Coordinate( CDC* pDC,int Xmax,int Ymax,COLORREF m_coordCr);
//???what use?
BOOL m_TestData;
BOOL m_SBKey;
// POINT m_Points[5][1000];//??? what use?
RECT m_viewrect;//???
// CSize m_xyAxisSize;
COLORREF m_ViewBkCr;
COLORREF m_TextCr;
COLORREF m_TextBkCr;
COLORREF m_LineCr;
CStatusBar* pSB;
CDialogBar* pDLGBAR;
CComboBox* pCombo1;
BOOL m_IsLining;
CString m_path[10];
CString Fangs;
virtual ~CCgeView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
void L_Draw(CDC* pDC);
afx_msg void OnContextMenu(CWnd*, CPoint point);
//{{AFX_MSG(CCgeView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnXianshi4();
afx_msg void OnXianshi5();
afx_msg void OnXianshi6();
afx_msg void OnXianshi9();
afx_msg void OnGongjv1();
afx_msg void OnViewgdsb();
afx_msg void OnViewgdtlcr();
afx_msg void OnXianshiDtlcr();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnEditReset();
afx_msg void OnUpdateEditReset(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewgdsb(CCmdUI* pCmdUI);
afx_msg void OnXianshi1();
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnSelchangeDlgbarcombo1();
afx_msg void OnStartLine();
afx_msg void OnUpdateStartLine(CCmdUI* pCmdUI);
afx_msg void OnEndLine();
afx_msg void OnUpdateEndLine(CCmdUI* pCmdUI);
afx_msg void OnInvert();
afx_msg void OnUpdateInvert(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewHstretch(CCmdUI* pCmdUI);
afx_msg void OnTimelabel();
afx_msg void OnUpdateTimelabel(CCmdUI* pCmdUI);
afx_msg void OnCutHead();
afx_msg void OnUpdateCutHead(CCmdUI* pCmdUI);
afx_msg void OnCutScale();
afx_msg void OnUpdateCutScale(CCmdUI* pCmdUI);
afx_msg void OnParfile();
afx_msg void OnSelchangeCombo1();
afx_msg void OnSFang();
afx_msg void OnUpdateSFang(CCmdUI* pCmdUI);
afx_msg void OnShowBaslinekey();
afx_msg void OnUpdateShowBaslinekey(CCmdUI* pCmdUI);
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnDestroy();
afx_msg void OnParRfile();
afx_msg void OnFileNew();
afx_msg void OnJuxing();
afx_msg void OnXuebo();
afx_msg void OnUpdateXuebo(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
int m_nFlowXY;
CDC memDC;
};
#ifndef _DEBUG // debug version in cgeView.cpp
inline CCgeDoc* CCgeView::GetDocument()
{ return (CCgeDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CGEVIEW_H__D9F73F4E_313A_11D3_A324_DC37BD699B39__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -