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

📄 routeinfodlg.h

📁 VC++6.0基于CAN协议的车辆控制
💻 H
字号:
#if !defined(AFX_ROUTEINFODLG_H__103517A3_9B9B_4E4D_957D_CEB0F227AEA4__INCLUDED_)
#define AFX_ROUTEINFODLG_H__103517A3_9B9B_4E4D_957D_CEB0F227AEA4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RouteInfoDlg.h : header file
//
#include "ado.h"
/////////////////////////////////////////////////////////////////////////////
// CRouteInfoDlg dialog

class CRouteInfoDlg : public CDialog
{
// Construction
public:
	CRouteInfoDlg(CWnd* pParent = NULL);   // standard constructor
	CAdoConnection m_pConnection;
// Dialog Data
	//{{AFX_DATA(CRouteInfoDlg)
	enum { IDD = IDD_RouteInfo_DIALOG };
	CListCtrl	m_RouteInfoList;
	CListCtrl	m_TrainCodeList;
	//}}AFX_DATA


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

// Implementation
protected:
	CString m_sTrainCode,m_sCurrentStationEn,m_sCurrentStationCh,m_sNextStationEn,\
		m_sNextStationCh,m_sArrivalTime,m_sDepartTime,m_sStayTime,\
		m_sDistanceNextStation,m_sETA,m_sAnnouncementDistanceThreshold;
	
	CString m_sTrainCodeSel; //单击选中的车次
	int m_list1PosSel, m_list2PosSel; //列表1,2是否有选中 >-1选中 ==-1未选中
	void ReadDataFromDB();
	void ReadRouteInfoFromDB();
    int IndexInFieldList;
	char mDir_Path[256];  //程序路径
	char mMDB_Path[256];  //数据库路径
	// Generated message map functions
	//{{AFX_MSG(CRouteInfoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButton1();
	afx_msg void OnAddTrainCodeButton();
	afx_msg void OnAlterTrainCodeButton();
	afx_msg void OnAddButton();
	afx_msg void OnDeleteButton();
	afx_msg void OnAlterButton();
	afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_ROUTEINFODLG_H__103517A3_9B9B_4E4D_957D_CEB0F227AEA4__INCLUDED_)

⌨️ 快捷键说明

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