//--------------------------------------------------------------------------- #ifndef BetLogFormUnitH #define BetLogFormUnitH //--------------------------------------------------------------------------- #include #include #include #include #include #include "GameUnit.h" #include #include #include #include #include #include //--------------------------------------------------------------------------- class TBetLogForm : public TForm { __published: // IDE-managed Components TPopupMenu *m_pm; TMenuItem *clear; TMenuItem *save; TMenuItem *N1; TDrawGrid *m_dg; TSearchBox *m_sbSearch; TTitleBarPanel *m_tbp; void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall LogsMouseWheelDown(TObject *Sender, TShiftState Shift, TPoint &MousePos, bool &Handled); void __fastcall LogsMouseWheelUp(TObject *Sender, TShiftState Shift, TPoint &MousePos, bool &Handled); void __fastcall ClearClick(TObject *Sender); void __fastcall SaveClick(TObject *Sender); void __fastcall LogsDrawCell(TObject *Sender, System::LongInt ACol, System::LongInt ARow, TRect &Rect, TGridDrawState State); void __fastcall FormCreate(TObject *Sender); void __fastcall FormResize(TObject *Sender); void __fastcall LogsTopChanged(TObject *Sender); void __fastcall LogsSelectCell(TObject *Sender, System::LongInt ACol, System::LongInt ARow, bool &CanSelect); void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift); void __fastcall SearchInvokeSearch(TObject *Sender); void __fastcall SearchExit(TObject *Sender); void __fastcall SearchEnter(TObject *Sender); void __fastcall SearchDblClick(TObject *Sender); void __fastcall FormDeactivate(TObject *Sender); void __fastcall FormActivate(TObject *Sender); void __fastcall LogsMouseMove(TObject *Sender, TShiftState Shift, int X, int Y); private: // User declarations int m_nShowRows; bool m_bAutoScroll; vector m_aSearchLogs; int m_iSearchEnd; String m_sSearch; bool m_bSearch; void __fastcall ShowLogs(); String __fastcall GetLogText(TBetLog* pLog, int iCol); void __fastcall SearchSelAll(); MESSAGE void __fastcall UMLogUpdate(TMessage &msg); BEGIN_MESSAGE_MAP MESSAGE_HANDLER(UM_LOG_UPDATE, TMessage, UMLogUpdate) END_MESSAGE_MAP(TForm) public: // User declarations __fastcall TBetLogForm(TComponent* Owner); void __fastcall Init(vector& aLogs); }; //--------------------------------------------------------------------------- extern PACKAGE TBetLogForm *BetLogForm; extern vector g_aBetLogs; //¹Ò»úÈÕÖ¾ //--------------------------------------------------------------------------- #endif