Click or drag to resize

MultiMediaContainer.MCISendMessage Method

X#
Send an MCIWNDM_XXX message to the contained MCI window.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD MCISendMessage(
	dwMsg,
	wParam,
	lParam
) AS USUAL CLIPPER
Request Example View Source

Parameters

dwMsg (Optional)
Type: Usual
The message ID.
wParam (Optional)
Type: Usual
The first SendMessage parameter as DWORD. The default is 0.
lParam (Optional)
Type: Usual
The second SendMessage parameter as LONG. The default is 0.

Return Value

Type: Usual
The result value (as LONG).
Remarks
If the associated file contains video or audio information (for example, an .AVI or .WAV file), the MultiMediaContainer class creates an MCI window. Using the MCISendMessage() method, you can send any of the MCIWNDM_XXX messages documented in the Win32 SDK help to this window. Using these messages, you can programmatically change the look and behavior of the window, play the multimedia data, etc.
Tip Tip
Consult your Microsoft Win32 Software Development Kit documentation for detailed information about MCIWNDM_XXX messages and commands.
Examples
This code snippet starts the playback of a video or audio file:
X#
1oDCMM:MCISendMessage(MCIWNDM_PLAYFROM)
This code snippet advances the data step by step:
X#
1oDCMM:MCISendMessage(MCI_STEP, 0, 1)
This code snippet removes the toolbar from the window:
X#
1oDCMM:MCISendMessage(MCIWNDM_CHANGESTYLES, MCIWNDF_NOPLAYBAR, ;
2MCIWNDF_NOPLAYBAR)
See Also