testmatcom_mfcview.h
来自「《精通matlab与c++混合编程》的光盘内容」· C头文件 代码 · 共 84 行
H
84 行
// testmatcom_mfcView.h : interface of the CTestmatcom_mfcView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TESTMATCOM_MFCVIEW_H__52CD9650_BE76_4E81_9154_25C00376E1A1__INCLUDED_)
#define AFX_TESTMATCOM_MFCVIEW_H__52CD9650_BE76_4E81_9154_25C00376E1A1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "matlib.h"
class CTestmatcom_mfcView : public CView
{
protected: // create from serialization only
CTestmatcom_mfcView();
DECLARE_DYNCREATE(CTestmatcom_mfcView)
// Attributes
public:
CTestmatcom_mfcDoc* GetDocument();
// Operations
public:
Mm m_h; // 第一个图的MATCOM句柄
Mm m_data; //第一图的数据
Mm m_h1; //第二个图的MATCOM句柄
Mm m_data1; //第二个图的数据
Mm m_hline1,m_hline;
int m_nScopeTimerID;/*定时器ID*/
int m_scopeflag; /*第一个图是否继续显示标志*/
int m_scopeflag1;/*第二个图是否继续显示标志*/
int m_hFlag;/*图形窗口是否创建*/
BOOL isInitMatcom; //MATCOM的初始化标志
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestmatcom_mfcView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
bool IsMatcomHanleValid(Mm handle);
virtual ~CTestmatcom_mfcView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTestmatcom_mfcView)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDrawnoise();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnSingraph();
afx_msg void OnScope1();
afx_msg void OnScope();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in testmatcom_mfcView.cpp
inline CTestmatcom_mfcDoc* CTestmatcom_mfcView::GetDocument()
{ return (CTestmatcom_mfcDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTMATCOM_MFCVIEW_H__52CD9650_BE76_4E81_9154_25C00376E1A1__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?