有关Tray系统盒的VBAPI函数
2006-02-27 11:49:54 来源:WEB开发网核心提示:'ShellTrayFunctionsDeclareFunctionShell_NotifyIconLib"shell32.dll"Alias"Shell_NotifyIconA"(ByValdwMessageAsLong,lpDataAsNOTIFYICONDATA)A
'ShellTrayFunctions
DeclareFunctionShell_NotifyIconLib"shell32.dll"Alias"Shell_NotifyIconA"(ByValdwMessageAsLong,lpDataAsNOTIFYICONDATA)AsLong
dwMessage参数:NIM_ADD添加指定的图标
NIM_DELETE删除指定的图标
NIM_MODIFY修改指定的图标
lpData参数:NOTIFYICONDATA,这个结构的内容因dwMessage参数而异。
DeclareFunctionSHGetFileInfoLib"shell32.dll"Alias"SHGetFileInfoA"(ByValpszPathAsString,ByValdwFileAttributesAsLong,psfiAsSHFILEINFO,ByValcbFileInfoAsLong,ByValuFlagsAsLong)AsLong
DeclareFunctionSHGetNewLinkInfoLib"shell32.dll"Alias"SHGetNewLinkInfoA"(ByValpszLinktoAsString,ByValpszDirAsString,ByValpszNameAsString,pfMustCopyAsLong,ByValuFlagsAsLong)AsLong->
DeclareFunctionShell_NotifyIconLib"shell32.dll"Alias"Shell_NotifyIconA"(ByValdwMessageAsLong,lpDataAsNOTIFYICONDATA)AsLong
dwMessage参数:NIM_ADD添加指定的图标
NIM_DELETE删除指定的图标
NIM_MODIFY修改指定的图标
lpData参数:NOTIFYICONDATA,这个结构的内容因dwMessage参数而异。
DeclareFunctionSHGetFileInfoLib"shell32.dll"Alias"SHGetFileInfoA"(ByValpszPathAsString,ByValdwFileAttributesAsLong,psfiAsSHFILEINFO,ByValcbFileInfoAsLong,ByValuFlagsAsLong)AsLong
DeclareFunctionSHGetNewLinkInfoLib"shell32.dll"Alias"SHGetNewLinkInfoA"(ByValpszLinktoAsString,ByValpszDirAsString,ByValpszNameAsString,pfMustCopyAsLong,ByValuFlagsAsLong)AsLong->
更多精彩
赞助商链接