Version: |
1.2 |
Description: |
Returns or sets the Visual CADD™ world handle of the current drawing world. |
Declaration: |
|
C/C++ |
extern "C" WORLDHANDLE WINAPI VCGetCurrWorld(void); |
Delphi |
function VCGetCurrWorld:Longint; |
ActiveX/COM |
Function GetCurrWorld() As Long |
Parameters: |
hW - the Visual CADD™ world handle returned when VCNewWorld is used. |
Notes: |
When using multiple drawings, particularly with MDI windows, it is necessary to know which world is current. Before making any changes to a drawing in which the current world is not explicitly known, VCGetCurrWorld should be used to verify that intended world is active and if not VCSetCurrWorld should be used to set the current world accordingly. The values for VCGetCurrWorld will range from 0 to 63. You can also use VCSetCurrWorldByHWND which uses the Windows handle to set the world. |
See Also: |
VCGetCurrentView, VCIsCurrentWorldValid, VCNewWorld, VCDestroyWorld , VCSetCurrWorldByHWND |