标题:怎样用VB代码把程序缩进任务拦里,类似QQ和WINDOWS的音量?谢谢!
只看楼主
wish366
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2005-7-18
得分:0 
謝謝

2005-08-04 11:12
movine
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2005-7-21
得分:0 
收到,非常感谢,很详细!!!又学一招。。!
2005-09-03 12:03
wr07
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2005-7-17
得分:0 
我有控件
2005-09-03 21:33
rongke
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-9-6
得分:0 
呵呵 谢谢
2005-09-06 01:16
ychxy
Rank: 1
等 级:新手上路
帖 子:43
专家分:0
注 册:2005-9-6
得分:0 

直接调用API函数 Shell_NotifyIcon实现 函数声明: Private Type NOTIFYICONDATA cbSize As Long hwnd As Long uId As Long uFlags As Long ucallbackMessage As Long hIcon As Long szTip As String * 64 End Type

Private Const NIM_ADD = &H0 Private Const NIM_MODIFY = &H1 Private Const NIM_DELETE = &H2 Private Const WM_MOUSEMOVE = &H200 Private Const NIF_MESSAGE = &H1 Private Const NIF_ICON = &H2 Private Const NIF_TIP = &H4

Private Declare Function Shell_NotifyIcon Lib "shell32" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean Dim t As NOTIFYICONDATA '调用加减任务栏图标过程 sub sysIcon(bShow as boolean) if bshow then '显示图标 t.cbSize = Len(t) t.hwnd = .picSysIcon.hwnd t.uId = 1& t.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE t.ucallbackMessage = WM_MOUSEMOVE t.hIcon = picSysIcon.Picture t.szTip = App.Title & Chr$(0) Shell_NotifyIcon NIM_ADD, t App.TaskVisible = False else t.cbSize = Len(t) t.hwnd = picSysIcon.hwnd t.uId = 1& Shell_NotifyIcon NIM_DELETE, t end if end


2005-09-07 14:58
ychxy
Rank: 1
等 级:新手上路
帖 子:43
专家分:0
注 册:2005-9-6
得分:0 
最后一行应为 end sub

2005-09-07 14:59



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-16612-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018952 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved