如题,比如
获得。EXE文件在Explorer中的图标,获得。DLL在Explorer中的图标,获得。DOC在Explorer中的图标...
谢谢各位了
获得。EXE文件在Explorer中的图标,获得。DLL在Explorer中的图标,获得。DOC在Explorer中的图标...
谢谢各位了
解决方案 »
- VB 函数 实参 括号 什么时候有什么时候应该没有
- 简单的看图软件
- --散分--我帮帮你,你帮帮我!
- QuickCHM编写帮助文档插入图片的问题!
- 关于录音设备的选择问题
- 用VB如何能实现把QQ里面的IP地址数据库“QQwry.dat”读取出来啊?
- 大哥们,请如何来实现帐号和密码的验证?用Access做数据库建立一表(储存帐号和密码),在登陆框中输入的帐号和密码怎样和Access中储存帐
- 如何为crystal report加动态数据源
- 数据相减,得出小数一串如何解决?
- 如何更改编译后的程序的图标
- 急~~~~~~,在线等~!!!!!!!
- 请问各位怎样使本机器不能上网(意思是我的软件打开,不允许上网,本软件关闭可以上网)最好是能 作到网上连接 ”禁用“我在2000下能实
Private Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
Private Declare Function ExtractIcon Lib "shell32.dll" Alias "ExtractIconA" (ByVal hInst As Long, ByVal lpszExeFileName As String, ByVal nIconIndex As Long) As Long
Private Sub Command1_Click()
Dim icon_n As Long
Dim icon_filename As String
Dim hmodule As Long
icon_filename = "F:\CALC.EXE"'这里填你要取图标的程序路径
Picture1.Cls
hmodule = GetModuleHandle(icon_filename) '取得文件句柄
icon_n = ExtractIcon(hmodule, icon_filename, 0)
DrawIcon Picture1.hdc, 0, 0, icon_n '画到Picture1中
End Sub
而是文件在Explorer中的图标...
在Explorer中
所有Dll文件的图标都是一致的(由系统提供)
所有INF文件的图标也都是一样的(也是由系统提供)
mp3文件的图标为默认播放器提供的图标
Doc文件的图标是用Wordpad或Office提供
and so on...
我想应该有办法从系统那里获得