Hello
I need help using the macro MCI_TMSF_FRAME. I trying to write an application that will play CD's I would like to display the track of the CD playing using:
SetDlgItemText(hDlg,IDC_STATIC_TRACK, ?????argument 3))
MCI_TMSF_FRAME returns a BYTE : What does this mean and how do I use this macro with SetDlgItemText();
Platform SDK: Windows Multimedia
MCI_TMSF_FRAME
The MCI_TMSF_FRAME macro retrieves the frames component from a parameter containing packed tracks/minutes/seconds/frames (TMSF) information.
BYTE MCI_TMSF_FRAME(
DWORD dwTMSF
);
Parameters
dwTMSF
Time in TMSF format.
Return Values
Returns the frames component of the specified TMSF information.
Remarks
Time in TMSF format is expressed as a DWORD value with the least significant byte containing tracks, the next least significant byte containing minutes, the next least significant byte containing seconds, and the most significant byte containing frames.
The MCI_TMSF_FRAME macro is defined as follows:
#define MCI_TMSF_FRAME(tmsf) ((BYTE)((tmsf) >> 24))