MultiMediaContainer.MCISendMessage Method | |
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
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual MCISendMessage(
Usual dwMsg = default,
Usual wParam = default,
Usual lParam = default
)
Request Example
View SourceParameters
- 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 |
---|
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:
1oDCMM:MCISendMessage(MCIWNDM_PLAYFROM)
This code snippet advances the data step by step:
1oDCMM:MCISendMessage(MCI_STEP, 0, 1)
This code snippet removes the toolbar from the window:
1oDCMM:MCISendMessage(MCIWNDM_CHANGESTYLES, MCIWNDF_NOPLAYBAR, ;
2MCIWNDF_NOPLAYBAR)
See Also