-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnit7.cpp
44 lines (38 loc) · 1.29 KB
/
Unit7.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit7.h"
#include <mmsystem.h>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TGAMES *GAMES;
//---------------------------------------------------------------------------
__fastcall TGAMES::TGAMES(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TGAMES::Image4Click(TObject *Sender)
{
WinExec("frogus.exe",1);
GAMES->Close();
}
//---------------------------------------------------------------------------
void __fastcall TGAMES::Image5Click(TObject *Sender)
{
WinExec("snake.exe",1);
GAMES->Close();
}
//---------------------------------------------------------------------------
void __fastcall TGAMES::Image2MouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
if(Button == mbLeft)
{
long SC_DRAGMOVE = 0xF012;
ReleaseCapture();
SendMessage(GAMES->Handle, WM_SYSCOMMAND, SC_DRAGMOVE, 0);
}
}
//---------------------------------------------------------------------------