SilverScreen Solid Modeler

SWInitStruct        

SWInitStruct        

Previous topic Next topic  

SWInitStruct        

Previous topic Next topic JavaScript is required for the print function  

SilverPlusRect

SilverEngineRect

 

SWInitStruct

 

Structure

A data type that stores information about a script window. A script window is a display window that has been configured to allow SilverScreen script command execution. This data type is not available to SilverC or to the SilverSharp platform.

 

 

 struct SWInitStruct

    {

    int      type;

    int      height;

    int      width;

    HWND     hwnd;

    HBITMAP  hbmp;

    NAME     screen;

    };

 

 


Members

Member

Description

type

A bit-flag whose meaning is as follows

 

Constant

Meaning

SW_USE_HWND

The script window uses a handle to a Win32 window to render

SW_USE_BITMAP

The script window uses a handle to a Win32 bitmap to render

SW_USE_EXISTING_SCREEN

The script window uses the rendering mechanism in-use on the existing screen to render



SW_ENABLE_OPENGL

Use in conjunction with SW_USE_HWND to allow OpenGL commands in the script window. The Win32 window must have WS_CLIPSIBLINGS and WS_CLIPCHILDREN styles, and cannot have CS_PARENTDC in class style.

 

height

Pixel height in display units of the drawing window

width

Pixel width in display units of the drawing window

 

hwnd

If 'type' has  SW_USE_HWND enabled, then this is a Win32 window handle used to render into the script window.

hbmp

If 'type' has SW_USE_BITMAP enabled, then this is a Win32 bitmap handle used to render into the script window.

screen

The existing SilverScreen screen name if SW_USE_SCREEN is enabled on 'type'.

 

 

See Also

scriptwin_open

 

 

Header

silver.h