网站导航免费论文 原创论文 论文搜索 原创论文 网学软件 学术大家 资料中心 会员中心 问题解答 原创论文 论文素材 设计下载 最新论文 下载排行 论文上传 在线投稿 联系我们
返回网学首页
网学联系
最新论文 推荐专题 热门论文 素材专题
当前位置: 网学 > 编程文档 > VC++ > 正文
利用Visual C++设计自己的资源浏览器
来源:Http://myeducs.cn 联系QQ:点击这里给我发消息 作者: 用户投稿 来源: 网络 发布时间: 12/10/15
下载{$ArticleTitle}原创论文样式
2__INCLUDED_)
#define AFX_LEFTVIEW_H__29F66875_4E46_11D6_9693_B383368EF622__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CDriveExplorerDoc;

class CLeftView : public CTreeView
{
protected: // create from serialization only
 CLeftView();
 DECLARE_DYNCREATE(CLeftView)
 // Attributes
public:
 CDriveExplorerDoc* GetDocument();
 CImageList* m_pImageList;
 CString m_LocalPath;
 // Operations
public:
 BOOL HasSubdirectory(CString &strPathName);
 BOOL IsDriveNode(HTREEITEM hItem);
 void SetButtonState(HTREEITEM hItem, CString &strPathName);
 UINT AddDirectoryNodes(HTREEITEM hItem, CString &strPathName);
 BOOL IsMediaValid(CString &strPathName);
 HTREEITEM GetDriveNode(HTREEITEM hItem);
 UINT DeleteChildren(HTREEITEM hItem);
 BOOL IsPathValid(CString &strPathName);
 CString GetPathFromItem(HTREEITEM hItem);
 void AddDummyNode(HTREEITEM hItem);
 void InitTreeView(HTREEITEM hParent);
 BOOL AddDrives(CString strDrive, HTREEITEM hParent);
 // Overrides
 // ClassWizard generated virtual function overrides
 //{{AFX_VIRTUAL(CLeftView)
public:
 virtual void OnDraw(CDC* pDC); // overridden to draw this view
 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
 virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
 virtual ~CLeftView();
 #ifdef _DEBUG
  virtual void AssertValid() const;
  virtual void Dump(CDumpContext& dc) const;
 #endif
protected:
 // Generated message map functions
protected:
 //{{AFX_MSG(CLeftView)
  // NOTE - the ClassWizard will add and remove member functions here.
  // DO NOT EDIT what you see in these blocks of generated code !
  afx_msg void OnDestroy();
  afx_msg void OnItemexpanding(NMHDR* pNMHDR, LRESULT* pResult);
  afx_msg void OnSelchanging(NMHDR* pNMHDR, LRESULT* pResult);
 //}}AFX_MSG
 DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in LeftView.cpp
 inline CDriveExplorerDoc* CLeftView::GetDocument()
 { return (CDriveExplorerDoc*)m_pDocument; }
#endif
#endif

////////////////////////////////////////////////////////// CLeftView
#include "stdafx.h"
#include "DriveExplorer.h"
#include "DriveExplorerDoc.h"
#include "LeftView.h"
#include "DriveExplorerView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE = __FILE__;
#endif
#define ILI_CDDRV 0
#define ILI_CLSDFLD 1
#define ILI_DRIVE 2
#define ILI_FLOPPYDRV 3
#define ILI_MYCOMP 4
#define ILI_OPENFLD 5
#define ILI_TEXTFILE 6
#define MYCOMPUTER "My Computer"
IMPLEMENT_DYNCREATE(CLeftView, CTreeView)
BEGIN_MESSAGE_MAP(CLeftView, CTreeView)
//{{AFX_MSG_MAP(CLeftView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
ON_WM_DESTROY()
ON_NOTIFY_REFLECT(TVN_ITEMEXPA

网学推荐

免费论文

原创论文

浏览:
设为首页 | 加入收藏 | 论文首页 | 论文专题 | 设计下载 | 网学软件 | 论文模板 | 论文资源 | 程序设计 | 关于网学 | 站内搜索 | 网学留言 | 友情链接 | 资料中心
版权所有 QQ:3710167 邮箱:3710167@qq.com 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
Copyright 2008-2015 myeducs.Cn www.myeducs.Cn All Rights Reserved
湘ICP备09003080号