-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnit5.cpp
46 lines (43 loc) · 1.51 KB
/
Unit5.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
45
46
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit5.h"
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TmainAboutus *mainAboutus;
//---------------------------------------------------------------------------
__fastcall TmainAboutus::TmainAboutus(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TmainAboutus::Image3MouseMove(TObject *Sender,
TShiftState Shift, int X, int Y)
{
Image2->Visible=true;
}
//---------------------------------------------------------------------------
void __fastcall TmainAboutus::Image1MouseMove(TObject *Sender,
TShiftState Shift, int X, int Y)
{
Image2->Visible=false;
}
//---------------------------------------------------------------------------
void __fastcall TmainAboutus::Image3Click(TObject *Sender)
{
Close();
}
//---------------------------------------------------------------------------
void __fastcall TmainAboutus::Image1MouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{
if(Button == mbLeft)
{
long SC_DRAGMOVE = 0xF012;
ReleaseCapture();
SendMessage(mainAboutus->Handle, WM_SYSCOMMAND, SC_DRAGMOVE, 0);
}
}
//---------------------------------------------------------------------------