Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CreateFromWindow(HWND,Integer) Constructor

Creates a region from a window.

#Declaration

Delphi
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