VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Eliran Abudi (BomberSoft)

Eliran Abudi (BomberSoft)  (1 Submission)   Custom Controls/Forms/Menus   VB 6.0   Unknown Difficulty   Thu 28th June 2001   Mon 8th February 2021

Eliran Abudi (BomberSoft)

API Declarations


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 nid As NOTIFYICONDATA
Private Const WM_LBUTTONDBLCLK = &H203 'Double-click
Private Const WM_LBUTTONDOWN = &H201 'Button down
Private Const WM_LBUTTONUP = &H202 'Button up
Private Const WM_RBUTTONDBLCLK = &H206 'Double-click
Private Const WM_RBUTTONDOWN = &H204 'Button down
Private Const WM_RBUTTONUP = &H205 'Button up
Function Tray()
With nid
.cbSize = Len(nid)
.hWnd = frmTray.hWnd
.uId = vbNull
.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE
.uCallBackMessage = WM_MOUSEMOVE
.hIcon = frmTray.Icon
End With
Shell_NotifyIcon NIM_ADD, nid
End Function
Function Unload()
Shell_NotifyIcon NIM_DELETE, nid
End
End Function

Rate Eliran Abudi (BomberSoft) (1(1 Vote))
Eliran Abudi (BomberSoft).bas

Eliran Abudi (BomberSoft) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters