_Dc2 Function

Purpose

Returns the handle of the Device Context for the AutoRedraw window area.

Syntax

h=_DC2([w])

h: Handle
w: iexp

Description

_DC2() is available only when AutoRedraw = True. AutoRedraw uses the second device context to repaint the window. The argument can be a value between 0 and 31 representing a window opened using OpenW, ParentW, and ChildW. Other forms should use the .hDC2 property of the object.

Example

OpenW 1 : AutoRedraw = 1

Print Me.hDC2

Print _DC2(1)

Remarks

Implemented for compatibility reasons.

_Dc2(1) is equivalent to Win_1.hDC2.

_Dc2() is equivalent to Me.hDC2.

See Also

_Dc(), AutoRedraw, hDC, hDC2

{Created by Sjouke Hamstra; Last updated: 20/09/2014 by James Gaite}