|
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.
}
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|