Initialising or releasing drawing resourcesΒΆ

BeginPaint()

Initialise resources for drawing operations

EndPaint()

Release resources when draw operations completed


SYNTAX

BeginPaint(window_id, start_xpos, start_ypos)

EndPaint(window_id)

All drawing operations, or sets of drawing operations, performed in a window must be enclosed between BeginPaint and EndPaint function calls. These functions initialise or release the resources needed to perform drawing operations in the current window.

The start_xpos and start_ypos parameters set the initial position for drawing operations, effectively calling the MoveTo() function for the co-ordinates specified.

Although it is not necessary to use BeginPaint and EndPaint when printing, it does no harm to include them.


EXAMPLE

BeginPaint(wintask,20,40)
... draw operations
EndPaint(wintask)

RELATED TOPICS

Drawing operations

Draw functions