本文整理自网络,侵删。
if CheckBox1.Checked then
SetWindowPos(Handle,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE + SWP_NOMOVE)
else
SetWindowPos(Handle,HWND_NOTOPMOST,0,0,0,0,SWP_NOSIZE + SWP_NOMOVE);
end;
相关阅读 >>
Delphi api: setwindowpos改变窗口的位置与状态
Delphi speedbutton按钮动态加载图片(从image和imagelist)
Delphi 7 + gdiplus 简单实现双缓冲绘制移动图形
更多相关阅读请进入《Delphi》频道 >>