📄 gprsdlg.h
字号:
// GPRSDlg.h : header file
//
#if !defined(AFX_GPRSDLG_H__C68ECCA6_698B_4B97_A342_805D870DA3A0__INCLUDED_)
#define AFX_GPRSDLG_H__C68ECCA6_698B_4B97_A342_805D870DA3A0__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/////////////////////////////////////////////////////////////////////////////
// CGPRSDlg dialog
#include "Gprsstatic.h"
#include "UIButton.h"
#include "UIComBox.h"
#include "UIEdit.h"
#include "gprsDia.h"
#include "def.h"
class CGPRSDlg : public CDialog
{
// Construction
public:
CGPRSDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CGPRSDlg)
enum { IDD = IDD_GPRS_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGPRSDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CGPRSDlg)
virtual BOOL OnInitDialog();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
afx_msg void OnDestroy();
afx_msg void OnPaint();
afx_msg void OnGprsButtonProc();
virtual void OnOK();
virtual void OnCancel();
DECLARE_MESSAGE_MAP()
private:
CBitmap m_bmpBackground;
CBrush m_brush;
CGprsStatic *m_StaticComPort;
CGprsStatic *m_StaticBaudRate;
CGprsStatic *m_StaticDiaNum;
CGprsStatic *m_StaticDiaState;
BOOL m_bEnableBackGround;
CUIButton *m_ComPortbutton;
CUIButton *m_BaudRatebutton;
CUIButton *m_Okbutton;
CUIButton *m_GprsDiabutton;
CUIButton *m_GprsDigitalbutton;
CUIComBox *m_ComPortComBox;
CUIComBox *m_BaudRateComBox;
CUIButton *m_GprsDiaHaltbutton;
CUIButton *m_Closebutton;
CUIEdit *m_DiaNum;
CGprsDia m_GprsDia;
BOOL m_ComPortOpen;
BOOL m_ReadComPortThreadIsInit;
BOOL m_bIsShowComPort;///
public:
void CreateStatic();
void CreateButton();
void GprsDiaProc();
void GprsDigitalProc();
void CreateComBox();
void InsertComBoxItem();
void CreateEdit();
LPTSTR CSTRToLPTSTR(CString csStrString);
void GprsDiaHalt();
void ReadComPortDataThreadStart();
void ReadComPortThreadProc();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GPRSDLG_H__C68ECCA6_698B_4B97_A342_805D870DA3A0__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -