Root > Reference > All Functions > GetApplicationRect

Function GetApplicationRect

Previous pageReturn to chapter overviewNext page   

Gets bounding rectangle for GUI application.

 

Unit

ESysInfo

 

Syntax

 

Code (Delphi)

function GetApplicationRect(

const APID: DWord

): TRect;

 

Parameters

APID [in]

Process ID of running application.

 

Return value

Bounding rectangle which includes all visible windows of the specified application.

 

If there is no visible windows belonging to the application - an empty region will be returned (0, 0, 0, 0).

 

Remarks

Function enumerates all windows of the specified application and find the smallest possible rectangle area which will include all such windows. The resulting area is returned.

 

This function is used when taking screenshot of desktop with "Capture my application's windows only" option enabled - to determinate region of desktop to take screenshot from.

 

See also




Send feedback... Build date: 2018-11-26
Last edited: 2018-11-26
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_function_esysinfo_getapplicationrect.php