Lazarus中文社区

 找回密码
 立即注册(注册审核可向QQ群索取)

QQ登录

只需一步,快速开始

Lazarus IDE and 组件 下载地址版权申明
查看: 1680|回复: 1

Lazarus检测任务栏位置的代码

[复制链接]

该用户从未签到

发表于 2013-4-17 09:34:40 | 显示全部楼层 |阅读模式
  1. var
  2.   hWndTaskbar: HWND;
  3.   TaskbarRect: TRect;
  4. begin
  5.     { First we get the Taskbar window and it's screen position }
  6.     hWndTaskbar := FindWindow('Shell_TrayWnd', nil);
  7.     if hWndTaskbar = 0 then Exit;
  8.     Windows.GetWindowRect(hWndTaskbar, @TaskbarRect);

  9.     //Memo1.Lines.Add(TaskbarRect.Top);
  10.     //Memo1.Lines.Add(TaskbarRect.Bottom);
  11.     //Memo1.Lines.Add(TaskbarRect.Left);
  12.     //Memo1.Lines.Add(TaskbarRect.Right);
  13. end;
复制代码
回复

使用道具 举报

该用户从未签到

发表于 2013-4-20 18:50:19 | 显示全部楼层
试试!~~~~~~~~~~
回复 支持 反对

使用道具 举报

*滑块验证:

本版积分规则

QQ|手机版|小黑屋|Lazarus中国|Lazarus中文社区 ( 鄂ICP备16006501号-1 )

GMT+8, 2025-5-2 21:34 , Processed in 0.028289 second(s), 10 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表