如何知道应用程序在任务栏上是否可见?
我在Windows上使用Delphi。
我没有尝试:
{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
你玩过吗?
Application.MainFormOnTaskbar := False;
和
Application.MainForm.Visible := False; Application.ShowMainForm := False;