⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sampledlg.h

📁 凌阳单片机的上位机控制编程
💻 H
字号:
// SampleDlg.h : header file
//
//{{AFX_INCLUDES()
#include "BtnST.h"	// Added by ClassView
#include "mscomm.h"
#include "quxian.h"	// Added by ClassView
//}}AFX_INCLUDES

#if !defined(AFX_SAMPLEDLG_H__3AD22C3A_96FA_42C0_B33C_FAF7025DF8BC__INCLUDED_)
#define AFX_SAMPLEDLG_H__3AD22C3A_96FA_42C0_B33C_FAF7025DF8BC__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSampleDlg dialog

class CSampleDlg : public CDialog
{
// Construction
public:
	BOOL m_zhuangtai;
	int strHexToInt(CString strTemp);
	void timedelay(double i);
	CString receive();
	void comsend(CString m_sendms);

	
	int String2Hex(CString str, CByteArray &senddata);
	char ConvertHexChar(char ch);
CButtonST m_btn;
CButtonST m_btn1;
CButtonST m_btn2;
CButtonST m_btn3;
CButtonST m_btn4;
CButtonST m_btn5;
CButtonST m_btn6;
CButtonST m_btn7;
CButtonST m_btn8;
CButtonST m_btn9;
CButtonST m_btn10;
CButtonST m_btn11;
CButtonST m_btn12;


	void SettingChanged();
	CSampleDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSampleDlg)
	enum { IDD = IDD_SAMPLE_DIALOG };
	CComboBox	m_ctrlStopBits;
	CComboBox	m_ctrlParity;
	CComboBox	m_ctrlDataBits;
	CComboBox	m_ctrlBaud;
	CComboBox	m_ctrlCOMName;
	CString	m_szCOMName;
	CString	m_szBaud;
	CString	m_szDataBits;
	CString	m_szParity;
	CString	m_szStopBits;
	CMSComm	m_COM;
	CString	m_szStatus;
	CString	m_strRXData;
	CString	m_mingling;
	CString	m_zhuanxiang;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSampleDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:	
//	CString temptemp;
	HICON m_hIcon;
	Cquxian m_quxian;
	CBitmap m_bkImage;
	CBrush m_bkBrush;
//	CString mstemp;


	// Generated message map functions
	//{{AFX_MSG(CSampleDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnOpenClose();
	afx_msg void OnSelchangeComName();
	afx_msg void OnSelchangeBaud();
	afx_msg void OnSelchangeDataBit();
	afx_msg void OnSelchangeParity();
	afx_msg void OnSelchangeStopBit();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnOnCommMscomm1();
	afx_msg void Onzhengzhuan();
	afx_msg void Ontingzhi();
	afx_msg void Onfanzhuan();
	afx_msg void Onjiasu();
	afx_msg void Onjiansu();
	afx_msg void Onduankou();
	afx_msg void Onfasong();
	afx_msg void Ondianjicanshu();
	afx_msg void Onweducanshu();
	afx_msg void Onguanyu();
	afx_msg void Onlikai();
	afx_msg void Onfanzhuan1();
	afx_msg void Onjiansu1();
	afx_msg void Onzhenzhuan1();
	afx_msg void Ontingzhi1();
	afx_msg void Onjiasu1();
	afx_msg void Onjiangwen1();
	afx_msg void Onshenwen1();
	afx_msg void Onshengwen();
	afx_msg void Onjiangwen();
	afx_msg void Onhuatu();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SAMPLEDLG_H__3AD22C3A_96FA_42C0_B33C_FAF7025DF8BC__INCLUDED_)

⌨️ 快捷键说明

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