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

📄 rentdlg.h

📁 可以实现基本的管理功能
💻 H
字号:
// RentDlg.h : header file
//

#if !defined(AFX_RENTDLG_H__1FC42792_E0C8_4453_BF0C_E679E05ECE0B__INCLUDED_)
#define AFX_RENTDLG_H__1FC42792_E0C8_4453_BF0C_E679E05ECE0B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CRentDlg dialog

class CRentDlg : public CDialog
{
// Construction
public:
	CRentDlg(CWnd* pParent = NULL);	// standard constructor
    void UpdateList();
// Dialog Data
	//{{AFX_DATA(CRentDlg)
	enum { IDD = IDD_DIALOG_MAIN };
	CEdit	m_editName;
	CComboBox	m_comboDVD;
	CDateTimeCtrl	m_DateTo;
	CDateTimeCtrl	m_DateFrom;
	CListCtrl	m_rentInfoList;
	CString	m_name;
	BOOL	m_check_Date;
	//}}AFX_DATA

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

// Implementation
protected:
	void DeleteRecord(CString ID,CString dvdName);
	void DeleteRecordTran(CString ID,CString dvdName);	
	void InitListCtr();
	void InitComboCtr();
	CString QueryDVDNameSP(CString dvdID);
	CString QueryDVDName(CString DVDID);
	int QueryDVDIDSP(CString dvdName);
	int QueryDVDID(CString dvdName);
	void AddDVDNum(CString strDVDID);

protected:
	
   HICON m_hIcon;
   //连接(Connection)对象指针
	_ConnectionPtr	m_pConnection;
	
	// Generated message map functions
	//{{AFX_MSG(CRentDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonRent();
	afx_msg void OnButtonDelete();
	afx_msg void OnButtonQuery();
	afx_msg void OnCheckDate();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

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

#endif // !defined(AFX_RENTDLG_H__1FC42792_E0C8_4453_BF0C_E679E05ECE0B__INCLUDED_)

⌨️ 快捷键说明

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