Opening the Playback Window

The following example shows how to use the MCI_OPEN command to set a parent window and create a child of that window.

MCI_DGV_OPEN_PARMS mciOpen;

mciOpen.lpstrElementName = lpstrFile; // Set the filename.

mciOpen.dwStyle = WS_CHILD; // Set the style.

mciOpen.hWndParent = hWnd; // Give a window handle.

if (mciSendCommand(0, MCI_OPEN,

(DWORD)(MCI_OPEN_ELEMENT|MCI_DGV_OPEN_PARENT|MCI_DGV_OPEN),

(DWORD)(LPSTR)&mciOpen) == 0)

{

// Open operation is successful. Continue.

}

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database