MCGetControllerBoundsRgn
Some movie controllers may not be rectangular in shape. TheMCGetControllerBoundsRgnfunction returns the actual region occupied by the controller and its movie, if the movie is attached to the controller. If the movie is not attached to its controller, the boundary region encloses only the control portion of the controller. The rectangle returned by theMCGetControllerBoundsRectfunction (described in the previous section) bounds the region returned byMCGetControllerBoundsRgn.
pascal RgnHandle MCGetControllerBoundsRgn (MovieController mc);
mc- Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager'sOpenComponentorOpenDefaultComponentfunction, or from theNewMovieControllerfunction.DESCRIPTION
As with theMCGetControllerBoundsRectfunction, theMCGetControllerBoundsRgnfunction returns a region that reflects the size, shape, and location of the controller, even if the controller is hidden. Your application must dispose of the returned region.The
MCGetControllerBoundsRgnfunction returns a handle to the boundary region. Your application must dispose of this region.RESULT CODES
Memory Manager errorsSEE ALSO
You can use theMCGetWindowRgnfunction, described in the next section, to determine the portion of the window that is currently in use by the controller.