picker.h
来自「本人工作中的一个软件开发实例。里面包含了数据库」· C头文件 代码 · 共 66 行
H
66 行
#if !defined(AFX_PICKER_H__E0E6AD01_1036_4825_A832_95A1A2758007__INCLUDED_)
#define AFX_PICKER_H__E0E6AD01_1036_4825_A832_95A1A2758007__INCLUDED_
#include "SerialPort.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Picker.h : header file
//
#define SENDLEN 50
/////////////////////////////////////////////////////////////////////////////
// CPicker view
class CPicker : public CFrameWnd
{
protected:
DECLARE_DYNCREATE(CPicker)
// Attributes
public:
// Operations
public:
CPicker();
CPicker(CWnd * Parent,int nPort); // protected constructor used by dynamic creation
virtual ~CPicker();
void SendData(char * lpcSend); //发送数据函数
void SendData(CString strSend); //发送数据函数
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPicker)
//}}AFX_VIRTUAL
// Implementation
protected:
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
//串口变量
protected:
CSerialPort *m_pSerialPorts; //串口对象
CString m_strRcv; //接收到的字符串
CString m_strSnd; //要发送的字符串
char m_lpcSnd[SENDLEN]; //要发送的字符串
CWnd * m_pParent; //父窗口指针
// Generated message map functions
protected:
//{{AFX_MSG(CPicker)
afx_msg LONG OnRcvChar(WPARAM, LPARAM);
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PICKER_H__E0E6AD01_1036_4825_A832_95A1A2758007__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?