|
Adding User-Controlled Playback
You can add user-controlled playback to an existing application by calling the MCIWndCreate function as follows:
MCIWndCreate(hwndParent, hInstModule, NULL, "filename.typ");
The MCIWndCreate parameters identify handles to the parent window and to the module instance
associated with the MCIWnd window. They also specify window styles and the
filename (or device name) to associate with the MCIWnd window.
MCIWndCreate automatically performs the following steps that, for other window classes,
you would implement in your code yourself:
- Register the MCIWnd window class.
- Create the MCIWnd window.
- Load the specified content.
- Establish the current playback position at the beginning of the content.
- Display the device control.
- Display the playback area of the window, if needed.
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
TMS Scripter Studio Pro components for Delphi/C++Builder
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
|