开发者

Application is visible on taskbar?

开发者 https://www.devze.com 2022-12-13 15:51 出处:网络
How to know if 开发者_如何学运维a Application is visible on taskbar? I am using Delphi on windows.I didn\'t try :

How to know if 开发者_如何学运维a Application is visible on taskbar?

I am using Delphi on windows.


I didn't try :

{Wnd = your app. handle}

    if IsWindowVisible(Wnd) 
       and
       ( (GetWindowLong(Wnd, GWL_HWNDPARENT) = 0) or (HWND(GetWindowLong(Wnd, GWL_HWNDPARENT)) = GetDesktopWindow) ) 
       and
       ((GetWindowLong(Wnd, GWL_EXSTYLE) and WS_EX_TOOLWINDOW) = 0)
    then 
      // your application is visible on taskbar


Did you play with

Application.MainFormOnTaskbar := False;

and

Application.MainForm.Visible := False;
Application.ShowMainForm := False;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号