//---------------------------------------------------------------------------

#ifndef CTV0101MFH
#define CTV0101MFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBClient.hpp>
#include <Provider.hpp>
//---------------------------------------------------------------------------
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <jpeg.hpp>
#include <Menus.hpp>
#include "cxClasses.hpp"
#include "cxControls.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxEdit.hpp"
#include "cxFilter.hpp"
#include "cxGraphics.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinCaramel.hpp"
#include "dxSkinCoffee.hpp"
#include "dxSkinDarkRoom.hpp"
#include "dxSkinDarkSide.hpp"
#include "dxSkinFoggy.hpp"
#include "dxSkinGlassOceans.hpp"
#include "dxSkiniMaginary.hpp"
#include "dxSkinLilian.hpp"
#include "dxSkinLiquidSky.hpp"
#include "dxSkinLondonLiquidSky.hpp"
#include "dxSkinMcSkin.hpp"
#include "dxSkinMoneyTwins.hpp"
#include "dxSkinOffice2007Black.hpp"
#include "dxSkinOffice2007Blue.hpp"
#include "dxSkinOffice2007Green.hpp"
#include "dxSkinOffice2007Pink.hpp"
#include "dxSkinOffice2007Silver.hpp"
#include "dxSkinOffice2010Black.hpp"
#include "dxSkinOffice2010Blue.hpp"
#include "dxSkinOffice2010Silver.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "dxSkinSeven.hpp"
#include "dxSkinSharp.hpp"
#include "dxSkinSilver.hpp"
#include "dxSkinStardust.hpp"

#include "CDSCctvCtlrF.h"
//---------------------------------------------------------------------------
class TCTV0101M : public TForm
{
__published:	// IDE-managed Components
    TPanel *PnlMain;
    TPanel *PnlCctv;
    TImage *ImgEmerArrow;
    TLabel *LblName;
    TImage *ImgCctv;
    TcxGrid *CxList;
    TcxGridTableView *TvList;
    TcxGridColumn *Col00;
    TcxGridColumn *Col01;
    TcxGridColumn *Col02;
    TcxGridColumn *Col03;
    TcxGridLevel *GlList;
    TPopupMenu *PopupMenu1;
    TMenuItem *MnuNetworkPing;
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall FormDestroy(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall TvListCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);
    void __fastcall MnuNetworkPingClick(TObject *Sender);
private:	// User declarations
public:
    HWND        FPHandle;
    bool        FDeleted;

    int         FRow;
    int         FCol;

    String      FCTLR_NMBR;
    TCctvCtlr  *FObjInfo;

public:		// User declarations
    __fastcall TCTV0101M(TComponent* Owner);

    void __fastcall LoadLocalSkin();
    void __fastcall CommClose();
    bool __fastcall Initialize();
    void __fastcall CreateStatusList();
    
    void __fastcall RefreshStatus();
    void __fastcall SetCommErrorStatus();
};
//---------------------------------------------------------------------------
//extern PACKAGE TCTV0101M *CTV0101M;
//---------------------------------------------------------------------------
#endif

