Vcl.Controls.TWinControl.CreateSubClass
Delphi
procedure CreateSubClass(var Params: TCreateParams; ControlClassName: PChar);
C++
void __fastcall CreateSubClass(TCreateParams &Params, System::WideChar * ControlClassName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TWinControl |
Description
Creates a windowed control derived from an existing Windows window class.
Call CreateSubClass in the CreateParams method of a subclassed control, after calling the inherited CreateParams. Specify the parameter record as the value of the Params parameter. CreateSubClass allows VCL controls to create registered Windows controls.