Vcl.StdCtrls.TCustomListBox.CreateParams
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 | TCustomListBox |
Description
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.