任务栏可见吗?
我需要知道任务栏是否已分配,但已选中“自动隐藏任务栏”并且任务栏暂时隐藏。我有一个函数,如果已分配任务栏,则返回任务栏的高度;如果未分配,则返回零。
但是,如果已设置 Windows“自动隐藏”选项,该函数仍会返回任务栏的高度,尽管只有在光标移动到屏幕的下边缘时任务栏才可见。
当我设定 Image.Height:=Screen.Height-MyTaskbarHeight 它设置图像高度,就好像任务栏始终可见一样。
在伪代码中,我需要的是
if Taskbar.Assigned then
if Taskbar.AutoHide.Checked then // Assume it is hidden
Image.Height:=Screen.Height else
Image.Height:=Screen.Height-MyTaskbarHeight;
有什么建议吗?
谢谢
I need to know if the Taskbar is Assigned but the "Auto Hide Taskbar" has been checked and the Taskbar is temporarily hidden. I have a Function the returns the Height of the Taskbar if it has been assigned or zero if not.
But, if the Windows "Auto Hide" option has been set, the Function still returns the height for the Taskbar, although it is not visible until the cursor moves to the bottom edge of the screen.
When I set
Image.Height:=Screen.Height-MyTaskbarHeight
it sets the image height as if the task bar was visible all of the time.
In pseudo-code, what I need is
if Taskbar.Assigned then
if Taskbar.AutoHide.Checked then // Assume it is hidden
Image.Height:=Screen.Height else
Image.Height:=Screen.Height-MyTaskbarHeight;
Any suggestions?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
TAppBarData 在 ShellAPI 中定义。
TAppBarData is defined in ShellAPI.
您可以使用
SHAppBarMessage
函数you can use the
SHAppBarMessage
function