www.pudn.com > PBMS.rar > BorrowDlg.h


#if !defined(AFX_BORROWDLG_H__19ADF3FD_CB29_4BD7_9A81_25E560323BC2__INCLUDED_) 
#define AFX_BORROWDLG_H__19ADF3FD_CB29_4BD7_9A81_25E560323BC2__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// BorrowDlg.h : header file 
// 
#include "PBMSView.h" 
#include "ReturnTimeDlg.h" 
#include "BookInfoDlg.h" 
///////////////////////////////////////////////////////////////////////////// 
// CBorrowDlg dialog 
 
class CBorrowDlg : public CDialog 
{ 
// Construction 
public: 
	CBorrowDlg(CWnd* pParent = NULL);   // standard constructor 
	DECLARE_DYNCREATE(CBorrowDlg) 
// Dialog Data 
	//{{AFX_DATA(CBorrowDlg) 
	enum { IDD = IDD_BOOK_BORROW }; 
	CButtonST	m_btnBorrowAgain; 
	CButtonST	m_btnReborrow; 
	CButtonST	m_btnEdit; 
	CButtonST	m_btnReturn; 
	CButtonST	m_btnDel; 
	CButtonST	m_btnAdd; 
	CListCtrl	m_listBorrow; 
	//}}AFX_DATA 
public: 
	CArray m_userBooks;	//用户书籍对列 
	int						  m_curUserID;	//当用户书籍队列为空时,此变量十分有用 
	CArray	  m_libsInfo;	//所有图书馆信息对列,当用户添加书籍时要选择图书馆,故会用到此信息 
	bool					  m_canEdit;	//双击是否用		 
public: 
	void MyEnableCtrl(BOOL enable = TRUE); 
	bool RefreshColumnData(); 
	void SetColumnName(); 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CBorrowDlg) 
	public: 
	virtual BOOL PreTranslateMessage(MSG* pMsg); 
	virtual BOOL DestroyWindow(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	 
	// Generated message map functions 
	//{{AFX_MSG(CBorrowDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnButtonReturn(); 
	afx_msg void OnPaint(); 
	afx_msg void OnButtonAdd(); 
	afx_msg void OnButtonEdit(); 
	afx_msg void OnButtonReb(); 
	afx_msg void OnButtonDel(); 
	afx_msg void OnDblclkListBowlist(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnButtonBorrowAgain(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	void GetReturnTime(PBOOKINFO pBI); 
	void AlignControls(); 
	void SizeAllColumn(); 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_BORROWDLG_H__19ADF3FD_CB29_4BD7_9A81_25E560323BC2__INCLUDED_)