RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCanvas.Refresh Method

Deselects the Pen, Brush, and Font from the device context.

Pascal
procedure Refresh;
C++
__fastcall Refresh();

Call Refresh to return the HDC used by the canvas to a default state. Refresh does not change the values of the Font, Brush, or Pen properties. Calling any of the drawing methods of the canvas after calling Refresh will reselect the Font, Brush, or Pen into the HDC if it is used by the drawing method. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!