RELEASEHDC

Top  Previous  Next

Syntax

RELEASEHDC(win as WINDOW,hdc as UINT,OPT bRedraw=1 as INT)

Description

Releases the device context previously acquired with GETHDC.

Parameters

win - Window the device context belongs to.

hdc - Handle to the device context returned by GETHDC.

bRedraw - Optional. If 0 then the window is not redrawn after release. Default is to redraw and show changes.

Return value

None

Remarks

Every call to GETHDC must be matched in pairs to RELEASEHDC.

See Also: GETHDC

Example usage

hdc = GETHDC(win)
...
RELEASEHDC(win,hdc)