Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - erase background of control http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Erase Background of control
--------------------------------------------------------------------------------

   Syntax: EraseBkGnd( <hDC> ) --> <nuVal> 

   Parameters:

   <hDC> The 'window' handle of the control for which the background
   should be erased (read: repainted).

   Returns:
   The result depends on the fact if a control has a TBrush() object
   associated to it or not. If it has a TBrush() object associated to
   it, the return value will be 1. Otherwise the return value will be
   Nil.

   Comments:
   The EraseBkGnd() method is normally called by the eventhandler
   automatically whenever needed. However you can call it yourself if
   you want to repaint the background of a control. If you want to do
   this you should pass the ::hDC instance variable of the particular
   control as parameter for the EraseBkGnd() method.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson