请问有吗??
解决方案 »
- 如何更改系统时间
- 一个表中有三个字段为主键,如何判断是否重复?
- 程序一到mrc.eof就出现错误"对象变量未设置或With块变量未设置"不知道为什么
- 怎样用vb做程序使win2000进入休眠或等待状态?
- 怎样判断一个动态数组是否已经初始化了???
- 怎么把图片上传的服务器指定目录下,然后保存图片的文件名,再读取图片显示!
- 如何在VB中用SendKey函数对文本框发送 CTRL+END 键消息
- 请教高手 !怎样直接往msflexgrid写入记录 送200分
- 来抢分啊!!菜鸟级问题!!
- 请教VB的Date类型和SQL7中datetime类型的比较问题
- 求 MediaPlayer6.2 控件资料
- 关于打印定位问题,求解,在线等,急
Private Declare Function DrawIcon Lib "user32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal hIcon As Long) 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 Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Sub Form_Load()
Dim Path As String, strSave As String
strSave = String(200, Chr$(0)) '缓冲区
Path = Left$(strSave, GetWindowsDirectory(strSave, Len(strSave))) + "\REGEdit.exe"
Picture1.Picture = LoadPicture() '晴空PICTURE1中的图片
Picture1.AutoRedraw = True
return1& = ExtractIcon(Me.hWnd, Path, 2) '从可执行文件中提取ICO
return2& = DrawIcon(Picture1.hdc, 0, 0, return1&) '在picture中重画ICO
End Sub
要保存为ICO文件啊!!!!!!!!!!