Vcl.StdCtrls.TCustomGroupBox.CreateParams

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateParams(var Params: TCreateParams); override;

C++

virtual void __fastcall CreateParams(Vcl::Controls::TCreateParams &Params);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomGroupBox

Description

Initializes a window-creation parameter record passed in the Params parameter.

The CreateWnd method calls CreateParams to initialize the parameters it passes to CreateWindowHandle. Override CreateParams to customize the way a group box creates its Windows representation. When overriding CreateParams, always call the inherited method first to set the default values, then make any desired adjustments.

Specify the parameter record as the value of the Params parameter. The TCreateParams type is a data structure holding information needed when telling Windows to create a window handle. The fields of a TCreateParams record become the parameters to a call to the CreateWindowEx API function.

TCustomGroupBox adjusts the window style by turning off the CS_HREDRAW and CS_VREDRAW flags.

See Also