procedure TMainForm.FormShow(Sender: TObject); var hwndOwner: HWnd; begin hwndOwner := GetWindow(Handle, GW_OWNER); ShowWindow(hwndOwner, SW_HIDE); // For Windows 2000, additionally call the ShowWindowAsync function: ShowWindowAsync(hwndOwner, SW_HIDE); ShowWindowAsync(Self.Handle, SW_HIDE); end; { Prevent the form from reappearing on the Taskbar after minimizing it: } private procedure WMSysCommand(var msg: TWMSysCommand); message WM_SysCommand; {....} implementation procedure TMainForm.WMSysCommand(var msg: TWMSysCommand); begin if msg.CmdType and $FFF0 = SC_MINIMIZE then hide else inherited; end;
隐藏任务栏上的程序
转载
谢祥选【小宇飞刀(xieyunc)】
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:隐藏任务栏上的程序
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
将任务栏图标设置为只显示小图标
任务栏图标修改
任务栏 小图标 -
隐藏任务栏上的程序
procedure TMainForm.FormShow(Sender: TObject); var hwndOwner: HWnd; begi
任务 function windows ide -
Qt-Qml-隐藏标题栏-程序依附任务栏
最近换工作,直接欢动qml这边来了,以后可能会有
Qt Qml 隐藏标题 依附任务栏 隐藏标题栏 -
隐藏显示任务栏
实现效果: 知识运用: API函数FindWindow和ShowWindow 实现代码:
任务栏 ide 可见性 编程