Recent

Author Topic: How to get the size of form borders?  (Read 654 times)

Jvan

  • Full Member
  • ***
  • Posts: 181
How to get the size of form borders?
« on: May 16, 2021, 06:54:26 pm »


Thanks.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: How to get the size of form borders?
« Reply #1 on: May 16, 2021, 07:47:21 pm »
On Windows use:
Code: Pascal  [Select][+][-]
  1. uses
  2.   Windows;
  3. ...
  4. var
  5.   wi: TWindowInfo;
  6. begin
  7.   GetWindowInfo(Handle,wi);

TWindowInfo has both rcWindow and rcClient.
« Last Edit: May 16, 2021, 07:48:55 pm by engkin »

 

TinyPortal © 2005-2018