29 lines
974 B
C++
29 lines
974 B
C++
//---------------------------------------------------------------------------
|
|
|
|
#include <vcl.h>
|
|
#include <mmsystem.h>
|
|
#pragma hdrstop
|
|
|
|
#include "TAlertBox.h"
|
|
//---------------------------------------------------------------------------
|
|
#pragma package(smart_init)
|
|
#pragma resource "*.dfm"
|
|
TAlertBox *AlertBox;
|
|
//---------------------------------------------------------------------------
|
|
__fastcall TAlertBox::TAlertBox(TComponent* Owner)
|
|
: TForm(Owner)
|
|
{
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
void __fastcall TAlertBox::BitBtn1Click(TObject *Sender)
|
|
{
|
|
sndPlaySound(0,0);
|
|
Visible=false;
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
void __fastcall TAlertBox::FormShow(TObject *Sender)
|
|
{
|
|
// sndPlaySound("snd\\recibiendoAtaque.wav", SND_ASYNC | SND_FILENAME | SND_LOOP);
|
|
}
|
|
//---------------------------------------------------------------------------
|