本文整理自网络,侵删。
让程序主窗口不响应“显示桌面”
procedure TForm1.FormCreate(Sender: TObject);
begin
with Application do
SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) and
not WS_EX_APPWINDOW or WS_EX_TOOLWINDOW);
SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE);
end;
相关阅读 >>
Delphi strutils.reversestring - 翻转字符串
Delphi adoconnection1连接mssql数据库方法
更多相关阅读请进入《Delphi》频道 >>