MainUnit.cpp
上传用户:lulishicai
上传日期:2010-03-01
资源大小:13202k
文件大小:1k
源码类别:
Delphi/CppBuilder
开发平台:
C++ Builder
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
- #include "MainUnit.h"
- #include "CDPlay.h"
- #include "MidiPlay.h"
- #include "MpgPlay.h"
- #include "WavePlay.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma resource "*.dfm"
- TMainForm *MainForm;
- //---------------------------------------------------------------------------
- __fastcall TMainForm::TMainForm(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall TMainForm::MpgPlayClick(TObject *Sender)
- {
- MpgForm->ShowModal();
- //显示影碟播放窗口
- }
- //---------------------------------------------------------------------------
- void __fastcall TMainForm::WavPlayClick(TObject *Sender)
- {
- WaveForm->ShowModal();
- //显示声音播放窗口
- }
- //---------------------------------------------------------------------------
- void __fastcall TMainForm::MidiPlayClick(TObject *Sender)
- {
- MidiForm->ShowModal();
- //显示音乐播放窗口
- }
- //---------------------------------------------------------------------------
- void __fastcall TMainForm::CDPlayClick(TObject *Sender)
- {
- CDForm->ShowModal();
- //显示CD播放窗口
- }
- //---------------------------------------------------------------------------