// CodeGear C++Builder
// Copyright (c) 1995, 2010 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ViewBlobForm.pas' rev: 22.00

#ifndef ViewblobformHPP
#define ViewblobformHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Variants.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <DBCtrls.hpp>	// Pascal unit
#include <jpeg.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <ExtDlgs.hpp>	// Pascal unit
#include <GIFImage_Anylib.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <DB.hpp>	// Pascal unit
#include <AnyConsts.hpp>	// Pascal unit
#include <MultiMon.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Viewblobform
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TfrmViewBlob;
class PASCALIMPLEMENTATION TfrmViewBlob : public Forms::TForm
{
	typedef Forms::TForm inherited;
	
__published:
	Dbctrls::TDBImage* DBImage1;
	Dbctrls::TDBMemo* DBMemo1;
	Extdlgs::TOpenPictureDialog* dlgOpenBlob;
	Menus::TMenuItem* N1;
	Menus::TMenuItem* menSaveImage;
	Extdlgs::TSavePictureDialog* dlgSaveImage;
	Extctrls::TImage* Image1;
	Menus::TPopupMenu* pmenImage;
	Menus::TMenuItem* menLImg;
	Menus::TMenuItem* MenuItem2;
	Menus::TMenuItem* menSImg;
	Menus::TMenuItem* menLoadImage;
	Extctrls::TPanel* Panel1;
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
	void __fastcall menLoadImageClick(System::TObject* Sender);
	void __fastcall menSaveImageClick(System::TObject* Sender);
	void __fastcall menLImgClick(System::TObject* Sender);
	void __fastcall menSImgClick(System::TObject* Sender);
	void __fastcall FormEndDock(System::TObject* Sender, System::TObject* Target, int X, int Y);
	void __fastcall FormCreate(System::TObject* Sender);
	
private:
	Db::TField* FField;
	unsigned AHandle;
	void __fastcall SaveField(Db::TField* BlobFld, System::UnicodeString FileName);
	bool __fastcall IsBitmap(Classes::TStream* mem);
	bool __fastcall IsJpegImage(Classes::TStream* mem);
	bool __fastcall IsGifImage(Classes::TStream* mem);
	bool __fastcall IsEmfImage(Classes::TStream* Stream);
	bool __fastcall IsWmfImage(Classes::TStream* Stream);
	int __fastcall MessageBox(System::WideChar * Text, System::WideChar * Caption, int Flags);
	bool __fastcall IsParadoxGraphic(Db::TField* Field);
	
protected:
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	
public:
	__fastcall virtual TfrmViewBlob(Classes::TComponent* AOwner);
	__property Db::TField* Field = {read=FField, write=FField};
public:
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmViewBlob(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmViewBlob(void) { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TfrmViewBlob(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE TfrmViewBlob* frmViewBlob;

}	/* namespace Viewblobform */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE)
using namespace Viewblobform;
#endif
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// ViewblobformHPP
