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

📄 comcontrol.h

📁 自已做的简单的库存管理软件。包含员工信息管理等
💻 H
字号:
#pragma once

//#include "ResizeDialog.h" 
#include "CMSComm.h"
#include "BTnST.h"


#include "afxwin.h"
#include "atltypes.h"
// CComcontrol dialog

class CComcontrol : public CDialog
{
	DECLARE_DYNAMIC(CComcontrol)

public:
	CComcontrol(CWnd* pParent = NULL);   // standard constructor
	virtual ~CComcontrol();

	CString str_rx_data;
	CString str_tx_data;

	HICON m_hIcon;

    CMSComm	m_ctrlComm;
	CString	m_strRXData;
	CString	m_strTXData;

	CButtonST	m_btn1;
	CButtonST	m_btn2;
	CButtonST	m_btn3;

	//BCMenu  m_bmenu;


// Dialog Data
	enum { IDD = IDD_COMCONTROL };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	afx_msg LRESULT OnRecvData(WPARAM wParam, LPARAM lParam);

	afx_msg void OnComm();
	afx_msg void OnButtonManualsend();


	DECLARE_EVENTSINK_MAP()

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonTx();
	afx_msg void OnBnClickedButtonClear();
	CButton m_ctrlHexSend;
	int String2Hex(CString str, CByteArray & senddata);
	char ConvertHexChar(char ch);
	CButton m_ctrlHexDiaplay;
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg void OnBnClickedCheckAutosend();
	bool m_bAutoSend;
	afx_msg void OnEnChangeEditTxData();
	afx_msg void OnBnClickedButtonUserset();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	CRect m_rect;
	afx_msg void OnBnClickedOk();
};

⌨️ 快捷键说明

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