Vcl.Forms.TScrollingWinControl.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.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TScrollingWinControl |
Description
Initializes the window creation parameters so that the entire window is not redrawn when the width or height of the client area changes.
The CreateWnd method calls CreateParams to initialize the parameters it passes to CreateWindowHandle. CreateParams calls the inherited method and uses that Window class style, removing the CS_HREDRAW and CS_VREDRAW styles from it.
By removing these styles the scrolling windowed control will only redraw the invalidated regions, not the entire window.