Returns the handle of the Device Context for a window area.
h=_Dc([w%])
h:Handle
w%:integer expression
During its software emulation of multitasking, Windows separates the entire screen into various Device Contexts. These Device Contexts are accessed with handles. If a program is to draw in a particular area of the screen it requires first the handle of the area in question. Various display areas are reordered whenever a new window is opened. For each window a handle can be obtained for the internal display area of the window and another handle for the total window area. _Dc(w%) returns the handle of the display area of the internal window area (Client Area). w% is thereby the window number.
OpenW # 1
Print _DC(1) // Device Context of Win_1
Implemented for compatibility reasons.
_Dc(1) is equivalent to Win_1.hDC.
_Dc() is equivalent to Me.hDC.
{Created by Sjouke Hamstra; Last updated: 20/09/2014 by James Gaite}