Initializes the window-creation parameter record passed in the Params parameter.
procedure CreateParams(var Params: TCreateParams); override;
virtual __fastcall CreateParams(TCreateParams Params);
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!