Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WWindow:Paint() Method
Draw/re-draw a window
------------------------------------------------------------------------------

Syntax
<oWnd>:Paint()   -->   0

Arguments
None.  However, the protected property self:hDC is a valid
device context.

You can access the paint structure through self:aPaint, if you
need it.

Returns
Zero (0).

Description
This method should fill the window's client area with whatever
text, graphics, etc. you want the user to see.  It will be
called any time the screen needs updating, such as when the
user uncovers part or all of a window.  It may be called as a
result of several different messages, e.g. WM_DRAWITEM and
WM_PAINT.

Example
// From SOURCE\OO\CLASSES\BITMAPFI.PRG:

METHOD Paint()           INLINE ShowDIB(::hDC, ::cDIB), 0


See Also: WWindow:OnPaint()

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