RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TScrollBox.CreateParams Method

Initializes the window creation parameters so that the entire window is not redrawn when the width or height of the client area changes.

Pascal
procedure CreateParams(var Params: TCreateParams); override;
C++
virtual __fastcall CreateParams(TCreateParams Params);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!