[Delphi (Object Pascal)] Delphi 获取一个图标或光标的热点位置 →→→→→进入此内容的聊天室

来自 , 2020-11-02, 写在 Delphi (Object Pascal), 查看 148 次.
URL http://www.code666.cn/view/182bd81e
  1. function GetIconHotspot(const Icon: Graphics.TIcon): Windows.TPoint;
  2. var
  3.   IconInfo: Windows.TIconInfo;  // receives info about icon
  4. begin
  5.   if not Windows.GetIconInfo(Icon.Handle, IconInfo) then
  6.     raise SysUtils.Exception.Create('Can''t get icon information');
  7.   Result.X := IconInfo.xHotspot;
  8.   Result.Y := IconInfo.yHotspot;
  9. end;
  10. //delphi/2247

回复 "Delphi 获取一个图标或光标的热点位置"

这儿你可以回复上面这条便签

captcha