/* Serial Mouse Tester Copyright (C) 2000-2007 Dmitry Brant http://dmitrybrant.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ //--------------------------------------------------------------------------- #ifndef mainH #define mainH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include #include #include //--------------------------------------------------------------------------- #include #include "BkgThread.h" #define MY_MESSAGE (WM_USER+2) class TMainForm : public TForm{ __published: // IDE-managed Components TMainMenu *MainMenu1; TMenuItem *File1; TMenuItem *Communication1; TMenuItem *Connect1; TMenuItem *Disconnect1; TMenuItem *Exit1; TShape *Shape1; TMenuItem *N1; TMenuItem *chkPatch; TMenuItem *Help1; TMenuItem *mnuAbout; TPanel *Panel1; TCheckBox *chkLog; TLabel *lblActivity; TMenuItem *Connect2; void __fastcall actConnectExecute(TObject *Sender); void __fastcall actDisconnectExecute(TObject *Sender); void __fastcall Exit1Click(TObject *Sender); void __fastcall FormMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y); void __fastcall chkPatchClick(TObject *Sender); void __fastcall mnuAboutClick(TObject *Sender); void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall chkLogClick(TObject *Sender); private: // User declarations public: // User declarations HANDLE comHandle; ComThread* theThread; __fastcall TMainForm(TComponent* Owner); void __fastcall MsgHandler(TMessage &message); BEGIN_MESSAGE_MAP MESSAGE_HANDLER(MY_MESSAGE, TMessage, MsgHandler); END_MESSAGE_MAP(TForm); }; //--------------------------------------------------------------------------- extern PACKAGE TMainForm *MainForm; //--------------------------------------------------------------------------- #endif