TTabControl.PaintWindow procedure
Updates the canvas handle and paints the control.
Declaration
procedure PaintWindow(DC: HDC); overrideArguments
DC | Device context for the control canvas. |
Description
PaintWindow is an overridden method in
TTabControl. It
ensures that the specified device context matches the
Handle for
the control canvas. When they differ, the value in
DC is
temporarily used as the canvas handle. The modified canvas handle is reset
prior to exiting from the method.
PaintWindow calls the Paint method to render the control using the
theme elements details available for a tab control. PaintWindow is called
when a paint message is received and applied in the PaintHandler
method.
PaintWindow re-implements the method from the ancestor class, and does not call the inherited method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
