📄 oscillograph3view.h
字号:
// oscillograph3View.h : interface of the COscillograph3View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_OSCILLOGRAPH3VIEW_H__06AB912C_6F3D_497B_B6B9_7D9B7AE203BA__INCLUDED_)
#define AFX_OSCILLOGRAPH3VIEW_H__06AB912C_6F3D_497B_B6B9_7D9B7AE203BA__INCLUDED_
#include "MyBtn.h" // Added by ClassView
#include "ControlPos2.h" // Added by ClassView
#include "OscopeCtrl.h" // Added by ClassView
#include "MyRoundSliderCtrl2.h"
#include "MyTextBtn.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class COscillograph3View : public CFormView
{
protected: // create from serialization only
COscillograph3View();
DECLARE_DYNCREATE(COscillograph3View)
public:
//{{AFX_DATA(COscillograph3View)
enum { IDD = IDD_OSCILLOGRAPH3_FORM };
CMyRoundSliderCtrl2 m_vDivSliderCtrl;
CMyRoundSliderCtrl2 m_msDivSliderCtrl;
//}}AFX_DATA
// Attributes
public:
COscillograph3Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COscillograph3View)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
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 OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
afx_msg LRESULT OnChangeValue(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnMyBtnLBDown(WPARAM wParam, LPARAM lParam);
virtual ~COscillograph3View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
CMyTextBtn m_myTextBtn[4];
int m_nCurrentChannel;
BOOL m_bShow;
BOOL m_bSuspend;
double m_dCurrentPoints[501];
int m_nTimes1;
double m_dMsDiv;
double m_dMsDiv1;
double m_dMsDiv2;
double m_dMsDiv3;
double m_dVDiv;
double m_dVDiv1;
double m_dVDiv2;
double m_dVDiv3;
CBrush m_BkBrush;
COscopeCtrl m_oscopeCtrl;
CControlPos2 m_controlpos;
CMyBtn m_myQuitBtn[9];
//{{AFX_MSG(COscillograph3View)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in oscillograph3View.cpp
inline COscillograph3Doc* COscillograph3View::GetDocument()
{ return (COscillograph3Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OSCILLOGRAPH3VIEW_H__06AB912C_6F3D_497B_B6B9_7D9B7AE203BA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -