home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / cdinfo / cdinfo.txt < prev    next >
Text File  |  1998-03-26  |  1KB  |  32 lines

  1. CDINFO
  2.  
  3. The CD Info sample draws a pie chart representing the length of
  4. tracks off the audio CD that is in the drive. It uses the Media
  5. Control Interface (MCI) APIs to retrieve this information. The
  6. sample also demonstrates how to use the tooltip common control
  7. to implement tooltips for your control. The tooltip displays
  8. the track length for the track represented by the pie chart
  9. segment that the cursor is over.
  10.  
  11. There is a VB sample in the VBTEST subdirectory that demonstrates
  12. use of the control.
  13.  
  14. The control implements the following Methods
  15. Read:
  16.     Reads the track length information from the CD in the
  17.     drive and displays the information in the form of a pie chart.
  18. Redraw:
  19.     Redraws the pie chart for the current CD.
  20. Play:
  21.     Starts playing the CD at the passed track number. The
  22.     control also rotates the pie chart so that the played
  23.     track will be at the top.
  24.  
  25. The following properties are available.
  26. Tracks:
  27.     The number of tracks on the CD.
  28. Length:
  29.     The length of the passed track number in seconds.
  30. TotalLength:
  31.     The total length of the CD in seconds.
  32.