#
CwGetView

### Syntax:

    viewHandle = CwGetView(srcHandle)

            viewHandle      (handle) The handle of the desired view.

            srcHandle       (handle) The handle of a project,
                            custom region or custom tool.

### Description:

This function returns a handle to the view associated with an object. Currently, only projects, custom regions and custom tools can have views associated with them.

### Example:

    /* Create a custom region and draw things on it. */
    t=CwGetRegion(CwCreateEffect("custom region", "solid color"))
    tv = CwGetView(t)
    call CwSelectView tv
    call drawStuff

### Remarks:

The project view is the main window. Currently, there may only be one project opened at a time.

Functions by NAME | Index | Functions by PURPOSE