delphi 窗体的位置和高宽度-TForm:Letf、Top、Width、Height、ClientWidth、ClientHeight

[窗体的高度和宽度]:

delphi 窗体的位置和高宽度-TForm:Letf、Top、Width、Height、ClientWidth、ClientHeight - 窗体区域:BoundsRect 、 GetWindowRect、ClientRect 、GetClientRect
[客户区的高度和宽度]: 

delphi 窗体的位置和高宽度-TForm:Letf、Top、Width、Height、ClientWidth、ClientHeight - 窗体区域:BoundsRect 、 GetWindowRect、ClientRect 、GetClientRect

[窗体在屏幕中的位置]: 

 

delphi 窗体的位置和高宽度-TForm:Letf、Top、Width、Height、ClientWidth、ClientHeight - 窗体区域:BoundsRect 、 GetWindowRect、ClientRect 、GetClientRect

 

 

 


2020.02.15

补充4个属性:

BoundsRect / GetWindowRect  外围区域

ClientRect / GetClientRect  客户区域

例如:

var
 R:TRect; //Rect(左,上,宽,高)
begin    
 R:=Self.BoundsRect;
 GetWindowRect(Handle,R);

 R:=Self.ClientRect;
 R:=GetClientRect;
end;

  

  

 

创建时间:2019.08.21  更新时间:2020.02.15

相关文章:

  • 2022-01-17
  • 2021-06-13
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-05-31
  • 2021-08-06
  • 2021-12-05
相关资源
相似解决方案