Skip to main content

CreateFromWindow(HWND,Integer) Constructor

Creates a region from a window.

Declaration

constructor CreateFromWindow(AHandle: HWND; ADummy: Integer = 0); overload;

Parameters

Name Type
AHandle HWND
ADummy Integer

Remarks

Call this constructor and pass a target window’s handle as the AHandle parameter. The constructor uses the target window’s region to initialize a TcxRegion class instance. If the window has no defined region, the constructor defines a new rectangular region that matches the window boundaries.

Note

The ADummy optional parameter value is always ignored. This parameter is intended only to distinguish the CreateFromWindow constructor in C++Builder code, since all constructors must have a name identical to the class name in C++.

See Also