English 中文(简体)
服务申请
原标题:Service Application too visible

努力在Delphi 5申请服务,准备在Windows XP操作,7。 大部分申请都很合情,但Im正在成为一个问题。 这项服务申请的一部分是偶尔显示数据的一种形式(类似于电箱Avast的用途,以便让你知道最新数据)。 当这项服务显示形式时,形式显示在任务区,但我们不想。 是否有人建议如何隐藏在ta子上的形式? 我发现的常规应用标准方法迄今都没有奏效。 感谢。

最佳回答

删除<代码>CreateParams方法并添加 WS_EX_TOOLWINDOW Value to the Params.ExStyle field. 这将把它当作一个工具窗口,而这个窗口却获得一个任务许可。

问题回答

它与你设想有一个通知区icon(a.k.a.系统线一线)向用户通报服务中/与服务有关的事件一样。

你需要把你服务的这一全球倡议方面与服务本身分开,并使用某种国际会计准则,以便按照要求与服务机构联系。 视贵委会的需要而定,这可以成为一条名为“管道”,共享一个被绘制的记忆档案或一个更先进的文件。

然后,管理GUIw.r.t 行为的技术应当像预期的那样发挥作用。

创建网站: rel=“nofollow noreferer”职称=“About.com”。 http://delphi.about.com/od/adptips1999/qt/hide fromtaskbar.htm

procedure TMainForm.FormCreate(Sender: TObject) ;
begin
  ShowWindow(Application.Handle, SW_HIDE) ;
  SetWindowLong(Application.Handle, GWL_EXSTYLE, getWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW) ;
  ShowWindow(Application.Handle, SW_SHOW) ;
end;

由于2007年德尔菲,为了掩盖任务,你需要几条法典:

Set Main form OnTask Bar to FALSE

主要形式

ShowWindow(Application.Handle, SW_HIDE);

主要形式

ShowWindow(Application.Handle, SW_HIDE); 




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签