busrouteupdatedlg.h

来自「一个简单的公交查询管理系统」· C头文件 代码 · 共 81 行

H
81
字号
#if !defined(AFX_BUSROUTEUPDATEDLG_H__FAF58D73_CA16_47FD_9C3E_E47BA664A390__INCLUDED_)
#define AFX_BUSROUTEUPDATEDLG_H__FAF58D73_CA16_47FD_9C3E_E47BA664A390__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BusRouteUpdateDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBusRouteUpdateDlg dialog

class CBusRouteUpdateDlg : public CDialog
{
// Construction
public:
    
	int m_list_all;       // 线路列表的总数
	int m_list_hanghao;   // 线路列表当前的行号
	int m_listbox_route_hanghao;      // 路线列表当前的行号
	int m_listbox_station_hanghao;    // 路线站点当前的行号
	int nRouteCount;      // 路线中站点总数
//	CString m_String_Route;

	void DeleteStationInfor(CString strRoute, int busNumber);
	int  UpdateStationInfor(CString strStation, int busNumber, int sign);
	void ShowRoute(CString strRoute);
	void StationInforQuery();
	void StationTypeQuery();
	void RouteInforQuery();
	CBusRouteUpdateDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CBusRouteUpdateDlg)
	enum { IDD = IDD_BUS_ROUTE_UPDATE };
	CComboBox	m_ComboBox_BusType;
	CButton	m_Button_Ticket;
	CListCtrl	m_ListCtrl_Route;
	CListBox    m_ListBox_Station;
	CListBox    m_ListBox_Route;
	CString	m_String_Remark;
	CString	m_String_BusType;
	int		m_Int_BusNumber;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CBusRouteUpdateDlg)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnRouteUpdateListboxInsert();
	afx_msg void OnRouteUpdateClear();
	afx_msg void OnRouteUpdateAdd();
	afx_msg void OnRouteUpdateDelete();
	afx_msg void OnRouteUpdateModify();
	afx_msg void OnRouteUpdateListboxAdd();
	afx_msg void OnRouteUpdateListboxClear();
	afx_msg void OnRouteUpdateListboxDelete();
	afx_msg void OnClickRouteUpdateList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangeRouteUpdateListboxStation();
	afx_msg void OnSelchangeRouteUpdateListboxRoute();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_BUSROUTEUPDATEDLG_H__FAF58D73_CA16_47FD_9C3E_E47BA664A390__INCLUDED_)

⌨️ 快捷键说明

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