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


//==================================================================// 
//						此项目飞狼工作室制作 
//项 目 名:	PBMS 
//项目描述:	这是为了方便图书管理的软件。    功能特点:多用户、信息保密、还书提醒、资料保存。 
//作   者:	龚勋 
//日  期:  2003-11-14 
//-=================================================================// 
// PBMSView.h : interface of the CPBMSView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_PBMSVIEW_H__F4F98901_7C4B_4941_B309_08FB6DE846D6__INCLUDED_) 
#define AFX_PBMSVIEW_H__F4F98901_7C4B_4941_B309_08FB6DE846D6__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
//右边面板类 
#include "UserDlg.h" 
#include "BorrowDlg.h" 
#include "ReturnDlg.h" 
#include "LibDlg.h"	 
#include "SysDlg.h" 
#include "PBMSDoc.h" 
 
class CPBMSView : public CListView 
{ 
protected: // create from serialization only 
	CPBMSView(); 
	DECLARE_DYNCREATE(CPBMSView) 
 
// Attributes 
public: 
	CPBMSDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CPBMSView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void OnInitialUpdate(); // called first time after construct 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	int UserLogon(CString); 
	void DataExchange(int whichBar,bool save = true);//数据交换 
	virtual ~CPBMSView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
	CDialog *m_RightDlg;		//用于动态生成右边面板 
	int		m_curRightBarType;	//当前显示的面板类型 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CPBMSView) 
	afx_msg void OnPaint(); 
	//}}AFX_MSG 
	afx_msg void OnStyleChanged(int nStyleType, LPSTYLESTRUCT lpStyleStruct); 
	afx_msg void OnShowRightBar(WPARAM wParam, LPARAM lParam);//显示右边面板消息 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in PBMSView.cpp 
inline CPBMSDoc* CPBMSView::GetDocument() 
   { return (CPBMSDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_PBMSVIEW_H__F4F98901_7C4B_4941_B309_08FB6DE846D6__INCLUDED_)