CDINFO.TXT
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- CDINFO
- The CD Info sample draws a pie chart representing the length of
- tracks off the audio CD that is in the drive. It uses the Media
- Control Interface (MCI) APIs to retrieve this information. The
- sample also demonstrates how to use the tooltip common control
- to implement tooltips for your control. The tooltip displays
- the track length for the track represented by the pie chart
- segment that the cursor is over.
- There is a VB sample in the VBTEST subdirectory that demonstrates
- use of the control.
- The control implements the following Methods
- Read:
- Reads the track length information from the CD in the
- drive and displays the information in the form of a pie chart.
- Redraw:
- Redraws the pie chart for the current CD.
- Play:
- Starts playing the CD at the passed track number. The
- control also rotates the pie chart so that the played
- track will be at the top.
- The following properties are available.
- Tracks:
- The number of tracks on the CD.
- Length:
- The length of the passed track number in seconds.
- TotalLength:
- The total length of the CD in seconds.