VCSetCurrWorldByHWND


Version:

3.0

Description:

Sets the Windows handle of the current drawing world.

Declaration:

 

C/C++

extern "C" WORLDHANDLE WINAPI VCSetCurrWorldByHWND(short* iError, HWND hWnd);

Delphi

procedure VCSetCurrWorldByHWND(var iError: smallint; hWnd_: Longint); stdcall;

ActiveX/COM

Function SetCurrWorldByHWND(ByVal hWnd As Long) As Long

Parameters:

hWnd - the Windows Handle

Return Value:

The Visual CADD™ WORLDHANDLE.

Notes:

When using multiple drawings, particularly with MDI windows, an application must know which world is current before making any changes to a drawing. VCGetCurrWorld and VCSetCurrWorld have been used for this purpose using an internal Visual CADD™ world handle. As an alternate, VCSetCurrWorldByHWND uses the Windows handle.

See Also:

VCGetCurrWorld, VCSetCurrWorld, VCGetWorldByHWND, VCGethWnd