Sign in Join
FPDoc Onlineexperiment

FindControl function

In unit Controls

Return the TWinControl for the given Handle.

Declaration

pascal
function FindControl(Handle: HWND): TWinControl

Description

The result is very interface specific; use FindOwnerControl when Handle may be a non-TWinControl handle. Handle can also be a child handle, and does not need to be the Handle property of the Result.

Important: In most cases, Result.Handle and the Handle parameter value are not the same.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.