Window InformationComplete Window Information Component for VCL
For all versions of Delphi and C++ Builder from 3 to 10.2.2 Tokyo and for all versions of Windows from XP to 10
Window Information (TWindowInformation component) allows you to find any window in the system and analyze it with VCL-friendly TWindow class which allow to access any window data with simple VCL-friendly properties, like Left, Top, Width, Height, BoundsRect, Text, Icon, WindowState, StayOnTop, etc.
All you need to find the window is to set the search parameters (SearchText, SearchClass and SearchKind properties) and to call the Refrech method. The OnAllowAdd and OnAdd events will be fired for each found window. After finishing the search process all the found windows will be present in the Windows array-type property as TWindow objects.
Forget about WinAPI calls to obtain low-level information about the window present by its handle - now you can create single TWindow object with the window handle passed to constructor and access any information by properties of this class in clear VCL style:
Controlling the non-VCL windows never was so simple!
with TWindow.Create($D0260) do
if Visible and Enabled then WindowState := wsMaximized;