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

📄 dlgconfig.h

📁 使用vc++技术实现光电机串口通信管理程序
💻 H
字号:
#if !defined(AFX_DLGCONFIG_H__5C32F3DB_2843_4916_BDAB_0FDB12E128F5__INCLUDED_)
#define AFX_DLGCONFIG_H__5C32F3DB_2843_4916_BDAB_0FDB12E128F5__INCLUDED_
#include "SerialPort.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgConfig.h : header file
//
#include "ColorListBox.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgConfig dialog

class CDlgConfig : public CDialog
{
// Construction
public:
	CDlgConfig(CWnd* pParent = NULL);   // standard constructor

	void ReadPlan();
	void WriteConfig(CString strConfig);
	static CString strSent;
	static int iState;//当前状态0:空闲;1:发送;2:接收;
	CSerialPort m_Port;
	void OnButtonOpenport(UINT uiCom);
	int Str2Hex(CString str, char* data);
	char HexChar(char c);
	void OnButtonClearReciArea(); 
	void InitListBox();
	void GetLogPath();
	void ReSetAim();
	CString strLogPath;
	CString strCurTime;
	int idelay;
	static int nSel1,nSel2,nSel3,nSel4;

// Dialog Data
	//{{AFX_DATA(CDlgConfig)
	enum { IDD = IDD_DIALOG_CONFIG };
	CColorListBox	m_CtrAim3;
	CColorListBox	m_CtrAim4;
	CColorListBox	m_CtrAim2;
	CColorListBox	m_CtrAim1;
	CListCtrl	m_CtrlListPlan;
	CListBox	m_CtrSourceD;
	CListBox	m_CtrSourceC;
	CListBox	m_CtrSourceB;
	CListBox	m_CtrSourceA;
	CString	m_strNote;
	CString	m_strRXData;
	CString	m_strTXData;
	int		m_iATR;
	int		m_iCmd;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgConfig)
	afx_msg LONG OnCommunication(WPARAM ch,LPARAM port);
	afx_msg void OnButtonManualsend();
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnOk();
	afx_msg void OnDblclkListPlan(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBtnSave();
	afx_msg void OnBtnRightato1();
	afx_msg void OnBtnRightato2();
	afx_msg void OnBtnRightato3();
	afx_msg void OnBtnRightato4();
	afx_msg void OnBtnRightbto1();
	afx_msg void OnBtnRightbto2();
	afx_msg void OnBtnRightbto3();
	afx_msg void OnBtnRightbto4();
	afx_msg void OnBtnRightcto1();
	afx_msg void OnBtnRightcto2();
	afx_msg void OnBtnRightcto3();
	afx_msg void OnBtnRightcto4();
	afx_msg void OnBtnRightdto1();
	afx_msg void OnBtnRightdto2();
	afx_msg void OnBtnRightdto3();
	afx_msg void OnBtnRightdto4();
	afx_msg void OnBtn1left();
	afx_msg void OnBtn2left();
	afx_msg void OnBtn3left();
	afx_msg void OnBtn4left();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClose();
	afx_msg void OnDblclkListAim1();
	afx_msg void OnSelchangeListAim1();
	afx_msg void OnSelchangeListAim2();
	afx_msg void OnSelchangeListAim3();
	afx_msg void OnSelchangeListAim4();
	afx_msg void OnDblclkListAim2();
	afx_msg void OnDblclkListAim3();
	afx_msg void OnDblclkListAim4();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DLGCONFIG_H__5C32F3DB_2843_4916_BDAB_0FDB12E128F5__INCLUDED_)

⌨️ 快捷键说明

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