📄 routesetingview.h
字号:
#if !defined(AFX_ROUTESETINGVIEW_H__3118601B_D217_4EB9_AD71_72C0C80B2B3A__INCLUDED_)
#define AFX_ROUTESETINGVIEW_H__3118601B_D217_4EB9_AD71_72C0C80B2B3A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RouteSetingView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CRouteSetingView record view
#include "RouteSet.h"
class CRouteSetingView : public CRecordView
{
protected:
CRouteSetingView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CRouteSetingView)
// Form Data
public:
//{{AFX_DATA(CRouteSetingView)
enum { IDD = IDD_ROUTESETVIEW };
CButton m_change;
CButton m_cancel;
CButton m_add;
CListCtrl m_resultlist;
CButton m_delete;
CButton m_okcontrol;
CEdit m_distancecontrol;
CEdit m_startcontrol;
CEdit m_routecontrol;
CEdit m_pricecontrol;
CEdit m_endcontrol;
CEdit m_drivetimecontrol;
CEdit m_routeidcontrol;
CListCtrl m_alllist;
CRouteSet* m_pSet;
CString m_start;
CString m_route;
CString m_end;
double m_distance;
double m_drivetime;
int m_routeid;
double m_price;
//}}AFX_DATA
// Attributes
public:
// Operations
public:
void Showalllist();
int curiItem;
int operation;
CRouteSet* GetRecordset();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRouteSetingView)
// NOTE - the ClassWizard will add and remove member functions here.
public:
virtual CRecordset* OnGetRecordset();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate();
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CRouteSetingView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
//{{AFX_MSG(CRouteSetingView)
afx_msg void OnAddButton();
afx_msg void OnChangeButton();
afx_msg void OnClickAlllist(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnOkButton();
afx_msg void OnDeleteButton();
afx_msg void OnButtonCancel();
afx_msg void OnRefurbish();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void Getvalue();
void Showresultlist();
void EnableView(bool b);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ROUTESETINGVIEW_H__3118601B_D217_4EB9_AD71_72C0C80B2B3A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -