PDA

Click to See Complete Forum and Search --> : api call for taskbar state


tolisss
Mar 14th, 2001, 04:16 PM
I want to know is the taskbar is loaded so I can create a tray icon my app is running as a nt service

Microbasic
Mar 14th, 2001, 05:59 PM
How about this?


Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Function QTaskbar() As Boolean
Dim x As Variant
x = FindWindow("Shell_TrayWnd", vbNullString)
QTaskBar = IsNull(x)
End Function