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

#ifndef FRAME_SamsungCamFH
#define FRAME_SamsungCamFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxButtons.hpp"
#include "cxCheckBox.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.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 "dxSkinSeven.hpp"
#include "dxSkinSharp.hpp"
#include "dxSkinSilver.hpp"
#include "dxSkinStardust.hpp"
#include "ImageBtn.h"
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include "XNSSDKDEVICELib_OCX.h"
#include "XNSSDKWINDOWLib_OCX.h"
#include <OleCtrls.hpp>
//---------------------------------------------------------------------------
#include "XnsCommon.h"
#include "CDSVmsCtlrF.h"

class TFRAMESansungCam : public TFrame
{
__published:	// IDE-managed Components
    TPanel *PnlSamsungCam;
    TPanel *PnlCamConrtol;
    TcxButton *BtnImageSave;
    TPanel *PnlPTZ;
    TImageBtn *BtnUpLeft;
    TImageBtn *BtnUp;
    TImageBtn *BtnUpRight;
    TImageBtn *BtnLeft;
    TImageBtn *BtnHome;
    TImageBtn *BtnRight;
    TImageBtn *BtnDownLeft;
    TImageBtn *BtnDown;
    TImageBtn *BtnDownRight;
    TImageBtn *BtnZoomIn;
    TImageBtn *BtnZoomOut;
    TImageBtn *BtnFocusIn;
    TImageBtn *BtnFocusOut;
    TLabel *Label3;
    TTrackBar *PTZSpeed;
    TXnsSdkDevice *XnsSdkDevice1;
    TPanel *PnlVmsCam;
    TXnsSdkWindow *XnsSdkWindow1;
    void __fastcall BtnCamCtlMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift,
          int X, int Y);
    void __fastcall BtnCamCtlMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift,
          int X, int Y);
    void __fastcall XnsSdkWindow1LButtonDblClk(TObject *Sender, long nDeviceID, long nControlID,
          long nRecDay);
    void __fastcall PnlVmsCamDblClick(TObject *Sender);
    void __fastcall PnlCamConrtolDblClick(TObject *Sender);
private:	// User declarations
	long     m_hDevice;         // Device handle
	long     m_lDeviceId;       // Device handle
	long     m_hMediaSource;    // Media stream ID
	long     m_nControlId;      // Control ID
	bool     m_bIsMediaPlay;    // Media play or stop

public:		// User declarations

    bool __fastcall SetupWebCamera();
    void __fastcall moveCamera(int ACommand);

    __fastcall TFRAMESansungCam(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFRAMESansungCam *FRAMESamsungCam;
//---------------------------------------------------------------------------
#endif
