Results 1 to 2 of 2

Thread: api call for taskbar state

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    didn't decide yet
    Posts
    222
    I want to know is the taskbar is loaded so I can create a tray icon my app is running as a nt service

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402

    Post

    How about this?

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


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width