VBGood网站全文搜索 Google

搜索VBGood全站网页(全文搜索)
首页 - 经验之谈 - 有关Tray系统盒的VB API函数
发表评论(0)作者:不详, 平台:VB6.0+Win98, 阅读:11199, 日期:2001-06-21
有关Tray系统盒的VB API函数
注释: Shell Tray Functions

Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long

dwMessage参数:NIM_ADD 添加指定的图标
NIM_DELETE 删除指定的图标
NIM_MODIFY 修改指定的图标
lpData参数: NOTIFYICONDATA,这个结构的内容因dwMessage参数而异。

Declare Function SHGetFileInfo Lib "shell32.dll" Alias " SHGetFileInfoA" (ByVal pszPath As String, ByVal dwFileAttributes As Long, psfi As SHFILEINFO, ByVal cbFileInfo As Long, ByVal uFlags As Long) As Long

Declare Function SHGetNewLinkInfo Lib "shell32.dll" Alias "SHGetNewLinkInfoA" (ByVal pszLinkto As String, ByVal pszDir As String, ByVal pszName As String, pfMustCopy As Long, ByVal uFlags As Long) As Long