1 //---------------------------------------------------------------------------
8 #include "popenable.h" // generated by bmp2rgn
10 namespace popdisable {
11 #include "popdisable.h" // generated by bmp2rgn
13 //---------------------------------------------------------------------------
14 #pragma package(smart_init)
15 #pragma resource "*.dfm"
16 TNotifyForm *NotifyForm;
17 //---------------------------------------------------------------------------
18 __fastcall TNotifyForm::TNotifyForm(TComponent* Owner)
23 //---------------------------------------------------------------------------
24 void __fastcall TNotifyForm::FormShow(TObject *Sender)
30 hRgn = ExtCreateRegion (0,
31 sizeof(popenable::bmp2rgn_rgnBytes),
32 &popenable::bmp2rgn_rgnData);
34 hRgn = ExtCreateRegion (0,
35 sizeof(popdisable::bmp2rgn_rgnBytes),
36 &popdisable::bmp2rgn_rgnData);
38 SetWindowRgn( Handle, hRgn, TRUE );
40 //---------------------------------------------------------------------------
41 void TNotifyForm::Setup()
43 EnableBmp->Visible = enable;
44 DisableBmp->Visible = !enable;
45 TImage *bmp = enable ? EnableBmp : DisableBmp;
51 SetCapture( Handle ); // capture
\82Å
\82«
\82È
\82¢
\81B
\82È
\82º
\81H
53 void __fastcall TNotifyForm::FormMouseMove(TObject *Sender,
54 TShiftState Shift, int X, int Y)
59 //---------------------------------------------------------------------------
60 void __fastcall TNotifyForm::FormDestroy(TObject *Sender)
64 //---------------------------------------------------------------------------