VCGetWorldIndexByHWND


Version:

2.0

Description:

Retrieves the WORLDHANDLE for a drawing from the displaying Window.

Declaration:

 

C/C++

extern "C" void WINAPI VCGetWorldIndexByHWND(short* iError, long hWnd, WORLDHANDLE* hW);

Delphi

procedure VCGetWorldIndexByHWND(var iError: Smallint; hWnd: Longint; var hW: Longint); stdcall;

ActiveX/COM

Function GetWorldIndexByHWND(ByVal hWnd As Long) As Long

Parameters:

hWnd - the HWND for the window containg the drawing.
HW - the returned WORLDHANDLE.

Notes:

Drawing world are referenced by an internal 0 based WORLDHANDLE index or a windows HWND for the control displaying the drawing. Typically, the API utilizes the internal WORLDHANDLE when referencing the drawing. VCGetWorldIndexByHWND is used to retrieve the internal index from a Windows HWND.

See Also:

VCChangeView, VCGetCurrWorld, VCGetWorldByHWND