M MilkRoad Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-21 #1 怎样使程序不在任务栏上显示,不使用showwindow.
Z zxb200 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-21 #2 procedure TForm1.FormCreate(Sender: TObject); begin setwindowlong(application.handle,GWL_EXSTYLE,getwindowlong(application.handle,GWL_EXSTYLE)+WS_EX_TOOLWINDOW); end; 要想程式不在Ctrl+alt+del列表中顯示,可在項目文件中加上: Application.Title:='';
procedure TForm1.FormCreate(Sender: TObject); begin setwindowlong(application.handle,GWL_EXSTYLE,getwindowlong(application.handle,GWL_EXSTYLE)+WS_EX_TOOLWINDOW); end; 要想程式不在Ctrl+alt+del列表中顯示,可在項目文件中加上: Application.Title:='';
M MilkRoad Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-21 #3 to zxb200 不行啊,我重载CreateParams用下面的代码也不行。 procedure TfrmFloat.CreateParams(var Params: TCreateParams); begin inherited CreateParams(Params); Params.style := Params.style or WS_EX_TOPMOST or WS_EX_ToolWindow; Params.WndParent := GetDesktopWindow; end;
to zxb200 不行啊,我重载CreateParams用下面的代码也不行。 procedure TfrmFloat.CreateParams(var Params: TCreateParams); begin inherited CreateParams(Params); Params.style := Params.style or WS_EX_TOPMOST or WS_EX_ToolWindow; Params.WndParent := GetDesktopWindow; end;
M MilkRoad Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-21 #4 应该在oncreate事件中加一下代码 SetWindowLong(Application.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW);