vc++课程设计资源管理器

时间:2015-06-17 03:59:20
【文件属性】:

文件名称:vc++课程设计资源管理器

文件大小:1.9MB

文件格式:RAR

更新时间:2015-06-17 03:59:20

vc++ 课程设计 资源管理器

很好的资源管理器,简单易懂,功能强大。 HTREEITEM rootItem = GetTreeCtrl().InsertItem("我的电脑", TVI_ROOT); char buff[1024] = {0}; GetLogicalDriveStrings(1024, buff); char* pTemp = buff; while (*(pTemp) != 0) { CString str; switch(::GetDriveType(pTemp)) { case DRIVE_FIXED: str = "本地磁盘"; break; case DRIVE_REMOVABLE: str = "可移动磁盘"; break; case DRIVE_CDROM: str = "光驱"; break; default: str = "未知磁盘"; break; } str = str + "(" + pTemp + ")"; SHGetFileInfo(pTemp, 0, &fileInfo;, sizeof(SHFILEINFO), SHGFI_SYSICONINDEX | SHGFI_SMALLICON); HTREEITEM subItem = GetTreeCtrl().InsertItem(str, fileInfo.iIcon, fileInfo.iIcon, rootItem); char* newBuff = new char[6]; strcpy(newBuff, pTemp); GetTreeCtrl().SetItemData(subItem, (unsigned long)newBuff); pTemp += 4; } g_hWnd2 = m_hWnd;


【文件预览】:
ResourceManage
----ResourceManageView.h(2KB)
----ReadMe.txt(4KB)
----StdAfx.h(1KB)
----ResourceManage.opt(57KB)
----res()
--------Toolbar.bmp(1KB)
--------ResourceManageDoc.ico(1KB)
--------ResourceManage.rc2(406B)
--------ResourceManage.ico(1KB)
----ResourceManage.clw(3KB)
----ResourceManage.cpp(4KB)
----ResourceManage.rc(13KB)
----MainFrm.cpp(4KB)
----ResourceManage.h(1KB)
----MainFrm.h(2KB)
----ResourceManage.aps(31KB)
----Debug()
--------vc60.pdb(356KB)
--------ResourceManageView.obj(36KB)
--------MainFrm.obj(26KB)
--------LookFile.obj(30KB)
--------vc60.idb(209KB)
--------ResourceManage.ilk(394KB)
--------ResourceManageDoc.obj(15KB)
--------ResourceManage.pch(5.26MB)
--------StdAfx.obj(103KB)
--------ResourceManage.pdb(369KB)
--------ResourceManage.obj(23KB)
--------ResourceManage.res(8KB)
--------ResourceManage.exe(132KB)
----ResourceManageDoc.h(2KB)
----ResourceManageView.cpp(7KB)
----resource.h(2KB)
----ResourceManage.dsp(5KB)
----ResourceManage.plg(809B)
----LookFile.cpp(4KB)
----ResourceManage.dsw(553B)
----LookFile.h(2KB)
----StdAfx.cpp(216B)
----ResourceManageDoc.cpp(2KB)
----ResourceManage.ncb(185KB)

网友评论

  • 思路很好,值得参考,就是有资源泄露,尚需想个办法解决,谢谢分享