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

📄 dirsplitter.h

📁 c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++6.0
💻 H
字号:
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
//       http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DIRSPLITTER_H__D82FB360_5591_11D3_B8DB_00600838CD5F__INCLUDED_)
#define AFX_DIRSPLITTER_H__D82FB360_5591_11D3_B8DB_00600838CD5F__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DirSplitter.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDirSplitter frame with splitter

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

#include "FileSystem.h"

struct LVFileInfo
{
	int nIcon;
	char szText[MAX_PATH];
};

class CDirSplitter : public CSplitterWnd
{
	friend class CDirListView;
	friend class CDirTreeView;
	friend class CChildFrame;

//	DECLARE_DYNCREATE(CDirSplitter)
public:                       // Would like to be protected
	CDirSplitter();           // protected constructor used by dynamic creation

// Attributes
public:

	void SetupPanes(int nSysType, LPCTSTR cszTargetMachine, 
		CCreateContext* pContext);
	void SetDirectory(LPCTSTR strDirectory, BOOL bForceUpdate = FALSE);

	void UpdateListDir(LPCTSTR strDirectory);

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDirSplitter)
	protected:
	virtual int OnCreate( LPCREATESTRUCT lpCreateStruct );
	virtual BOOL OnMouseWheel(UINT fFlags, short zDelta, CPoint point);
	//}}AFX_VIRTUAL

private:
	bool m_bHasInit;
	CFileSystem *m_pFileSystem;


// Implementation
public:
	CWnd * GetPane(int row, int col);
	void GetColumnInfo(int col, int &cxCur, int &czMin);
	void Refresh(BOOL bRefreshTree = FALSE);
	virtual ~CDirSplitter();

	// Generated message map functions
	//{{AFX_MSG(CDirSplitter)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	BOOL m_bHasPanes;
	CString m_strDirectory;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DIRSPLITTER_H__D82FB360_5591_11D3_B8DB_00600838CD5F__INCLUDED_)

⌨️ 快捷键说明

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