MainUnit.cpp
上传用户:lulishicai
上传日期:2010-03-01
资源大小:13202k
文件大小:1k
源码类别:

Delphi/CppBuilder

开发平台:

C++ Builder

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. #include "MainUnit.h"
  5. #include "CDPlay.h"
  6. #include "MidiPlay.h"
  7. #include "MpgPlay.h"
  8. #include "WavePlay.h"
  9. //---------------------------------------------------------------------------
  10. #pragma package(smart_init)
  11. #pragma resource "*.dfm"
  12. TMainForm *MainForm;
  13. //---------------------------------------------------------------------------
  14. __fastcall TMainForm::TMainForm(TComponent* Owner)
  15.         : TForm(Owner)
  16. {
  17. }
  18. //---------------------------------------------------------------------------
  19. void __fastcall TMainForm::MpgPlayClick(TObject *Sender)
  20. {
  21.     MpgForm->ShowModal();
  22.     //显示影碟播放窗口
  23. }
  24. //---------------------------------------------------------------------------
  25. void __fastcall TMainForm::WavPlayClick(TObject *Sender)
  26. {
  27.     WaveForm->ShowModal();
  28.     //显示声音播放窗口
  29. }
  30. //---------------------------------------------------------------------------
  31. void __fastcall TMainForm::MidiPlayClick(TObject *Sender)
  32. {
  33.     MidiForm->ShowModal();
  34.     //显示音乐播放窗口
  35. }
  36. //---------------------------------------------------------------------------
  37. void __fastcall TMainForm::CDPlayClick(TObject *Sender)
  38. {
  39.     CDForm->ShowModal();
  40.     //显示CD播放窗口
  41. }
  42. //---------------------------------------------------------------------------