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

// (DO NOT EDIT: machine generated header) 'Viewblobform.pas' rev: 21.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 */
using namespace Viewblobform;
#pragma pack(pop)
#pragma option pop

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