mmpSetDC

Syntax

BOOL mmpSetDC(idMovie, hDC)

This function sets a device context for a Movie Player instance, allowing the Movie Player to direct frame updates to a private or class device context.

Parameters

MMPID idMovie

Identifies the movie ID of the Movie Player instance.

HDC hDC

Identifies the handle to a device context to which the Movie Player instance will draw movie frames. To cancel the use of the alternate device context, pass a NULL value to this parameter.

Return Value

Returns TRUE if successful, otherwise returns FALSE.

Comments

By default, the Movie Player obtains a handle to a device context with most operations. To improve performance, you can use the mmpSetDC function to specify a private or class device context to use when displaying movie frames. Be sure to register the playback window with the CS_CLASSDC or CS_OWNDC style flags.