The MCIWNDM_SETTIMEFORMAT message sets the time format of an MCI device. You can send this message explicitly or by using the MCIWndSetTimeFormat macro.
MCIWNDM_SETTIMEFORMAT
wParam = 0;
lParam = (LPARAM) (LPSTR) lp;
Returns zero if successful or an error otherwise.
An application can specify time formats other than frames or milliseconds as long as the formats are supported by the MCI device. Noncontinuous formats, such as tracks and SMPTE, can cause the trackbar to behave erratically. For these time formats, you might want to turn off the toolbar by using the MCIWndChangeStyles macro and specifying the MCIWNDF_NOPLAYBAR window style.
If you want to set the time format to frames or milliseconds, you can also use the MCIWndUseFrames or MCIWndUseTime macro. For a list of time formats, see the MCIWndGetTimeFormat macro.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Unicode: Defined as Unicode and ANSI messages.
MCIWnd Window Class Overview, MCIWnd Messages, MCIWndChangeStyles, MCIWndGetTimeFormat, MCIWndSetTimeFormat, MCIWndUseFrames, MCIWndUseTime