Vcl.CheckLst.TCustomCheckListBox.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.CheckLst.pas
Vcl.CheckLst.hpp
Vcl.CheckLst TCustomCheckListBox

Description

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

Vcl.CheckLst.TCustomCheckListBox.CreateParams inherits from Vcl.StdCtrls.TCustomListBox.CreateParams. All content below this line refers to Vcl.StdCtrls.TCustomListBox.CreateParams.

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

CreateParams is used to pass information, in its Params parameter, to CreateWindowHandle when the list box control is created.

TCustomListBox overrides CreateParams to customize the representation of the window. It uses information from the list box Columns, ExtendedSelect, IntegralHeight, MultiSelect, Sorted and Style properties and sets WS_HSCROLL, WS_VSCROLL, LBS_HASSTRINGS and LBS_NOTIFY Windows styles for creation of the list box.

When overriding CreateParams, always call the inherited method first to set the default values, then make any desired adjustments.

See Also