cetoolsview.h

来自「串口通讯演示程序」· C头文件 代码 · 共 127 行

H
127
字号
// CeToolsView.h : interface of the CCeToolsView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CETOOLSVIEW_H__F0051D84_6DBC_478C_9C20_7FAB503F65B7__INCLUDED_)
#define AFX_CETOOLSVIEW_H__F0051D84_6DBC_478C_9C20_7FAB503F65B7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ColorStaticST.h"	// Added by ClassView
#include "ColorButton.h"

class CCeToolsView : public CFormView
{
protected: // create from serialization only
	CCeToolsView();
	DECLARE_DYNCREATE(CCeToolsView)

public:
	enum {MY_BTN1 = 1101, MY_BTN2 = 1102};
	//{{AFX_DATA(CCeToolsView)
	enum { IDD = IDD_CETOOLS_FORM };
	CProgressCtrl	m_Progress8_Ctrl;
	CProgressCtrl	m_Progress7_Ctrl;
	CComboBox	m_Combo_PortNo_Ctrl;
	CComboBox	m_Combo_Baud_Ctrl;
	CProgressCtrl	m_Progress3_Ctrl;
	CProgressCtrl	m_Progress2_Ctrl;
	//}}AFX_DATA

// Attributes
public:
//	CCeToolsDoc* GetDocument();
	CColorStaticST	m_Static25_Ctrl;
	CColorStaticST	m_Static24_Ctrl;

	CColorStaticST	m_Static5_Ctrl;
	CColorStaticST	m_Static6_Ctrl;
	CColorStaticST	m_Static7_Ctrl;
	CColorStaticST	m_Static9_Ctrl;
	CColorStaticST	m_Static28_Ctrl;
	CColorStaticST	m_Static11_Ctrl;

	CColorButton RadioButton1;
	CColorButton RadioButton3;

// Operations
public:
//	CRichEditCtrl	m_Richedit2_Ctrl;
	CCeToolsApp *app;
	CBitmap m_bitmap;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCeToolsView)
	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);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CCeToolsView();
/*
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
*/
protected:
	struct UseTool_struct
	{
		int PreUseTool;
		int PreUseSubTool;
		int CurUseTool;
		int CurUseSubTool;
	};
	UseTool_struct UseTool;
	int ViewPause;//1:暂停
	int ListViewCount;
// Generated message map functions
protected:
	void InitRv();
	int ViewData();
	int StringToByte(CString *str,BYTE *buf,int MaxLen,int flag);
	void ShowSetData();
	void SaveSetData();
	BOOL SetBkImage(LPCTSTR lpszResourceName);
	BOOL EraseBkgnd(CDC *pDC,CRect *rect);
	void InitSet();
	void ShowSet(int show);
	void ShowRev(int show);
	//{{AFX_MSG(CCeToolsView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnSelchangeComboBaud();
	afx_msg void OnSelchangeComboPortno();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnRadio1();
	afx_msg void OnRadio3();
	//}}AFX_MSG
	afx_msg long OnOutbarNotify(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};
/*
#ifndef _DEBUG  // debug version in CeToolsView.cpp
inline CCeToolsDoc* CCeToolsView::GetDocument()
   { return (CCeToolsDoc*)m_pDocument; }
#endif
*/
/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CETOOLSVIEW_H__F0051D84_6DBC_478C_9C20_7FAB503F65B7__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?