ExpTree_src

所属分类:系统编程
开发工具:C#
文件大小:153KB
下载次数:11
上传日期:2008-09-02 09:32:57
上 传 者神奇的东方树叶
说明:  C#编写资源管理器代码(带图标),非常实用.
(C# The preparation of resource management code (with icon), very useful.)

文件列表:
ExpTree\Version211\VS2002\ExpTreeLib\AssemblyInfo.vb (1083, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\CDragWrapper.vb (15598, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\ComDataObject.vb (6453, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\CProcDataObject.vb (21103, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\CShItem.vb (85932, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\ExpTree.resx (5505, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\ExpTree.vb (32073, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\ExpTreeLib.vbproj (5505, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\ShellDll.vb (48070, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\SystemImageListManager.vb (12853, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\Tests.vb (5080, 2006-03-10)
ExpTree\Version211\VS2002\ExpTreeLib\TVDragWrapper.vb (7799, 2006-03-10)
ExpTree\Version211\VS2002\ExpTree_Demo\AssemblyInfo.vb (1097, 2006-03-10)
ExpTree\Version211\VS2002\ExpTree_Demo\ExpTree_Demo.vbproj (4862, 2006-03-10)
ExpTree\Version211\VS2002\ExpTree_Demo\frmDragDrop.resx (10228, 2006-03-10)
ExpTree\Version211\VS2002\ExpTree_Demo\frmDragDrop.vb (26255, 2006-03-10)
ExpTree\Version211\VS2002\ExpTree_Demo\frmExplorerLike.resx (6011, 2006-03-10)
ExpTree\Version211\VS2002\ExpTree_Demo\frmExplorerLike.vb (21345, 2006-03-10)
ExpTree\Version211\VS2002\Version211.sln (1373, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\AssemblyInfo.vb (1083, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\CDragWrapper.vb (15598, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\ClassDiagram1.cd (1, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\ComDataObject.vb (6453, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\CProcDataObject.vb (21103, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\CShItem.vb (86235, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\ExpTree.resx (5505, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\ExpTree.vb (32073, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\ExpTreeLib.vbproj (4988, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\My Project (0, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\ShellDll.vb (48070, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\SystemImageListManager.vb (12988, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\Tests.vb (5080, 2006-03-10)
ExpTree\Version211\VS2005\ExpTreeLib\TVDragWrapper.vb (7799, 2006-03-10)
ExpTree\Version211\VS2005\ExpTree_Demo\AssemblyInfo.vb (1097, 2006-03-10)
ExpTree\Version211\VS2005\ExpTree_Demo\ExpTree_Demo.vbproj (4932, 2006-03-10)
ExpTree\Version211\VS2005\ExpTree_Demo\frmDragDrop.resx (6011, 2006-03-10)
ExpTree\Version211\VS2005\ExpTree_Demo\frmDragDrop.vb (26558, 2006-03-10)
ExpTree\Version211\VS2005\ExpTree_Demo\frmExplorerLike.resx (6011, 2006-03-10)
ExpTree\Version211\VS2005\ExpTree_Demo\frmExplorerLike.vb (21345, 2006-03-10)
... ...

ExpLib and Demo Version 2.11 This Zip contains two versions of the source: One for VS2002, one for VS2005. The 2002 version will convert seamlessly into VS2003. Obviously, the 2002 version is under the VS2002 directory and the 2005 version is under the VS2005 directory. The actual source for each is almost identical. Both forms in the demo contain a constant: #Const Ver = = 2002 for the 2002 version #Const Ver = = 2005 for the 2005 Version In only a few places, that constant is used to invoke the code changes needed between the two versions. The constant is only tested for equality to 2005, so if you are using VS2003 and feel obsessive, change the const to #const Ver = 2003 - it won't make any difference, anything other than 2005 will work. The source solutions may or may not corespond to Demo you were expecting. The only difference in the source between my two articles on this topic is in the Startup Form. Modify the StartUp Form to get the Demo you want to see. The code for the actual control library is identical between versions and between articles. Code changes from Version 2.1. Removed the Application.DoEvents call from CShItem.GetContents, as discussed in the forum. This was a historical accident in the first place, occasionally causes failure in VS2005, and really messes things up in dual core processors. Obvious changes for compatability with 2005: fixed many HTML comments removed or completed a number of Dim statements (eg Dim X = Something changed to Dim X as whatever = Something) VS2005 is better at catching this omission, as well as unused variables. Fixed a Long/Integer conflict in parameters (if your CIDA length is too long for an integer, the code will break, but if that happens you are doing something really wrong) Added Control.CheckForIllegalCrossThreadCalls = False to both forms - in both the Sub New for the Form (required on dual-core processors) and in the Form Load event. This is an OK thing to do in these Forms, but not generally recommended. If you want to fix it to do things properly, go ahead. Otherwise, very little has changed. One strange thing about VS2005 and the Drag/Drop Demo Form. No matter what you do, at least on my system, the Height of the Form is too small in the IDE to show the lower portion correctly. Change it and all is OK until the next rebuild, when it reverts. I fixed that by making the Form Autosize -- it displays properly when run. If anyone figures this out, let me know.

近期下载者

相关文件


收藏者