?? interfacedlg.h
字號:
// InterfaceDlg.h : header file
//
#if !defined(AFX_INTERFACEDLG_H__260DEDED_B73F_4EB3_AEFA_BC16242A1435__INCLUDED_)
#define AFX_INTERFACEDLG_H__260DEDED_B73F_4EB3_AEFA_BC16242A1435__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "ColourPicker.h"
#include "ColourPopup.h"
#include "DIB.h"
#include "BK_Ground.h"
/////////////////////////////////////////////////////////////////////////////
// CInterfaceDlg dialog
struct Serial_51
{
int add;
int channel;
};
class CInterfaceDlg : public CDialog
{
// Construction
public:
void Control(int chnl,int key);
void OnControlRemote(int add,int chnl);
void Get51Data();
void Onshowset2info();
void OnShowSET2INFO();
void OnShowLastVal();
void ShowLabel();
void ReadConfigs();
CBK_Ground New_BK; //畫圖
CInterfaceDlg(CWnd* pParent = NULL); // standard constructor
CButton ChannelCheck[8]; //選擇的通道
CColourPicker m_setcolour[8]; //8個設置顏色的按鈕
CString m_channellabel[8]; //8路通道的標簽
int ChannelChecked[8]; //選擇的通道的隊列
CChannelInfo m_channelinfo[8]; //定義8路通道的對象
CString m_set2info[8]; //設置信息的8個標簽,右面
CString m_lastval[8]; //最近一次的取值,8個標簽,右下方
BOOL Isrecord;
COLORREF StartColour[8];
Serial_51 *Trans_Ser;
LONG TimerNow; //計數器
int m_nTimer; //計數器句柄
short int beGetting; //正在占用通道采集數據 0-no 1 -ing
short int beTimering; //是否已開始計時;0:no 1: ing
short int beStarting; //是否已開始采集數據; 0:no 1:ing
LONG inters[8]; //各通道自動采集的時間間隔
CDC *pDC_h; //CDC設備
CStatic m_bmp[8]; //表示開關的圖片
// Dialog Data
//{{AFX_DATA(CInterfaceDlg)
enum { IDD = IDD_INTERFACE_DIALOG };
CString m_pointsnum;
int m_interval;
int m_terminal_com;
BOOL m_control0;
BOOL m_control1;
BOOL m_control2;
BOOL m_control3;
BOOL m_control4;
BOOL m_control5;
BOOL m_control6;
BOOL m_control7;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CInterfaceDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CInterfaceDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnGotoChannelSet();
afx_msg void OnSavePic();
afx_msg void OnSetBench();
afx_msg void OnSetPoints();
afx_msg void OnSetInterval();
afx_msg void OnReFreash();
afx_msg void OnStart();
afx_msg void OnChannelcheck0();
afx_msg void OnChannelcheck1();
afx_msg void OnChannelcheck2();
afx_msg void OnChannelcheck3();
afx_msg void OnChannelcheck4();
afx_msg void OnChannelcheck5();
afx_msg void OnChannelcheck6();
afx_msg void OnChannelcheck7();
afx_msg void OnSetCommPort();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButton2();
afx_msg void OnOpenpic();
afx_msg void OnFileSet();
afx_msg void OnExit();
afx_msg void OnRecord();
afx_msg void OnControl0();
afx_msg void OnControl1();
afx_msg void OnControl2();
afx_msg void OnControl3();
afx_msg void OnControl4();
afx_msg void OnControl5();
afx_msg void OnControl6();
afx_msg void OnControl7();
afx_msg void OnCheckCk();
//}}AFX_MSG
afx_msg LONG OnSelEndOK(UINT lParam, LONG wParam);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_INTERFACEDLG_H__260DEDED_B73F_4EB3_AEFA_BC16242A1435__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -