VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Display an icon in the system tray

miss Suprava  (1 Submission)   Windows System Services   VB 6.0   Unknown Difficulty   Tue 30th March 2004   Mon 8th February 2021

Display an icon in the system tray

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 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

Private Declare Function Shell_NotifyIcon Lib "shell32" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, pnid As NOTIFYICONDATA) As Boolean
Dim nid As NOTIFYICONDATA


Rate Display an icon in the system tray (2(2 Vote))
Display an icon in the system tray.bas

Display an icon in the system tray Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters