c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++6.0

源代码在线查看: view.h

软件大小: 21089 K
上传用户: likefunv
关键词: windows 2000 6.0
下载地址: 免注册下载 普通下载 VIP

相关代码

				// $$root$$View.h : interface of the C$$Safe_root$$View class
				//
				/////////////////////////////////////////////////////////////////////////////
				
				#if !defined(AFX_DEMO_EXPLORERVIEW_H__FC539911_AE66_11D2_AB9F_A08556C10000__INCLUDED_)
				#define AFX_DEMO_EXPLORERVIEW_H__FC539911_AE66_11D2_AB9F_A08556C10000__INCLUDED_
				
				#if _MSC_VER > 1000
				#pragma once
				#endif // _MSC_VER > 1000
				
				class C$$Safe_root$$Doc;
				class C$$Safe_root$$View : public CListView
				{
				protected: // create from serialization only
					C$$Safe_root$$View();
					DECLARE_DYNCREATE(C$$Safe_root$$View)
				
				// Attributes
				public:
					C$$Safe_root$$Doc* GetDocument();
					CString m_strCurDirectory;
					CListCtrl* m_pListCtrl;
				protected:
					CFont m_Font;
					CImageList m_LargeIcons;
					CImageList m_SmallIcons;
				
				// Operations
				public:
					void BuildColumns(int nCols, int * nWidth, CString * csCol);
					void FormatList(CString csPath);
				
				// Overrides
					// ClassWizard generated virtual function overrides
					//{{AFX_VIRTUAL(C$$Safe_root$$View)
					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:
					virtual ~C$$Safe_root$$View();
				#ifdef _DEBUG
					virtual void AssertValid() const;
					virtual void Dump(CDumpContext& dc) const;
				#endif
				
				protected:
				
				// Generated message map functions
				protected:
					afx_msg void OnContextMenu(CWnd*, CPoint point);
					//{{AFX_MSG(C$$Safe_root$$View)
					afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
					afx_msg void OnBlank();
					//}}AFX_MSG
					DECLARE_MESSAGE_MAP()
				};
				
				#ifndef _DEBUG  // debug version in $$root$$View.cpp
				inline C$$Safe_root$$Doc* C$$Safe_root$$View::GetDocument()
				   { return (C$$Safe_root$$Doc*)m_pDocument; }
				#endif
				
				/////////////////////////////////////////////////////////////////////////////
				
				//{{AFX_INSERT_LOCATION}}
				// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
				
				#endif // !defined(AFX_DEMO_EXPLORERVIEW_H__FC539911_AE66_11D2_AB9F_A08556C10000__INCLUDED_)
							

相关资源