Returns a handle provided by the Microsoft Windows operating environment to memory device context of the AutoRedraw image of a Form.
Form.hDC2
Form:Form Object
This property is a Windows operating environment device context handle. The Windows operating environment manages the system display by assigning a device context for each form in your application. The AutoRedraw property requires another DC; a memory device context to draw the graphic output in a memory bitmap. You can use the hDC2 property to refer to the handle for the Form's memory device context. This provides a value to pass to Windows API calls.
The memory graphic image can be obtained with the Image property of the Form.
OpenW 1, 0, 0, 400, 400
AutoRedraw = 1
Print "This is window 1"
OpenW 2, 401, 0, 400, 400
BitBlt Win_1.hDC2, 0, 0, 400, 400, Win_2.hDC, 0, 0, &H00CC0020
The value of the hDC2 property can change while a program is running, so don't store the value in a variable; instead, use the hDC2 property each time you need it.
Form, hDC, AutoRedraw, Image, _DC(), _DC2
{Created by Sjouke Hamstra; Last updated: 09/10/2014 by James Gaite}