RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomStatusBar.CreateWnd Method

Creates the Windows control that represents the status bar.

Pascal
procedure CreateWnd; override;
C++
virtual __fastcall CreateWnd();

The CreateHandle method calls CreateWnd to handle the particulars of creating the status bar window. TCustomStatusBar overrides the inherited method to ensure that the newly-created window and the TCustomStatusBar properties correctly reflect each other. 

The Windows control for the status bar can be temporarily destroyed and recreated in order to set properties that require changing the window creation parameters. Thus, CreateWnd may be called more than once during the lifetime of the TCustomStatusBar instance. 

 

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