VCDrawToDC2


Version:

2.0

Description:

Sets a device context for displaying the current drawing zoom.  VCDrawToDC2 should be used for 32-bit Windows.

Declaration:

 

C/C++

extern "C" void WINAPI VCDrawToDC2(short* iError, long hDC_, long bottom, long left, long right, long top);

Delphi

procedure VCDrawToDC2(var iError: Smallint; hDC_: Longint; bottom: Longint; left: Longint; right: Longint; top: Longint); stdcall;

ActiveX/COM

Sub DrawToDC2(ByVal hDC_ As Long, ByVal left As Long, ByVal bottom As Long, ByVal right As Long, ByVal top As Long)

Parameters:

 hDC - the handle for the Windows device context.
bottom
- the screen value for the bottom edge of the DC.
top
- the screen value for the top edge of the DC.
left
- the screen value for the left edge of the DC.
right
- the screen value for the right edge of the DC.

Notes:

Provides a quick and direct method for displaying the current view to a Window device context. The API will draw the current view in the active world or viewport and display the vectors in a device context. The routine requires the application to define the device context along with a bounding rect for the device boundary. These are passed in screen coordinates as separate parameters.

See Also:

VCDrawToDC, VCNewWorld