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

// (DO NOT EDIT: machine generated header) 'ieview.pas' rev: 30.00 (Windows)

#ifndef IeviewHPP
#define IeviewHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <Winapi.Messages.hpp>
#include <System.SysUtils.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Forms.hpp>
#include <System.Classes.hpp>
#include <Vcl.Graphics.hpp>
#include <hyieutils.hpp>
#include <System.UITypes.hpp>

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

namespace Ieview
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TIEView;
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TIEBitmapChangeEvent)(System::TObject* Sender, bool destroying);

typedef TIEBitmapChangeEvent *PIEBitmapChangeEvent;

class PASCALIMPLEMENTATION TIEView : public Vcl::Controls::TCustomControl
{
	typedef Vcl::Controls::TCustomControl inherited;
	
private:
	Vcl::Forms::TFormBorderStyle FBorderStyle;
	System::Classes::TList* fBmpChange;
	System::Classes::TNotifyEvent fOnMouseEnter;
	System::Classes::TNotifyEvent fOnMouseLeave;
	void __fastcall SetBorderStyle(Vcl::Forms::TBorderStyle Value);
	bool __fastcall GetCtl3D(void);
	HIDESBASE void __fastcall SetCtl3D(bool v);
	
protected:
	int fDPIX;
	int fDPIY;
	virtual void __fastcall SetBackGround(System::Uitypes::TColor cl);
	virtual Vcl::Graphics::TBitmap* __fastcall GetFBitmap(void);
	virtual Hyieutils::TIEBitmap* __fastcall GetIEBitmap(void);
	virtual void __fastcall CreateParams(Vcl::Controls::TCreateParams &Params);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Winapi::Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Winapi::Messages::TMessage &Message);
	virtual Hyieutils::TIEBitmap* __fastcall GetAlphaChannel(void) = 0 ;
	virtual bool __fastcall GetHasAlphaChannel(void) = 0 ;
	
public:
	System::Uitypes::TColor fBackGround;
	virtual void __fastcall RemoveAlphaChannel(bool Merge) = 0 ;
	virtual void __fastcall LockPaint(void) = 0 ;
	virtual int __fastcall UnLockPaint(void) = 0 ;
	virtual int __fastcall NPUnLockPaint(void) = 0 ;
	virtual void __fastcall SetDPIX(int dpiX);
	virtual void __fastcall SetDPIY(int dpiY);
	virtual void __fastcall SetDPI(int dpiX, int dpiY);
	virtual void __fastcall ImageChange(void);
	__fastcall virtual TIEView(System::Classes::TComponent* Owner);
	__fastcall virtual ~TIEView(void);
	__property int DpiX = {read=fDPIX, write=SetDPIX, nodefault};
	__property int DpiY = {read=fDPIY, write=SetDPIY, nodefault};
	__property Vcl::Graphics::TBitmap* Bitmap = {read=GetFBitmap};
	__property Hyieutils::TIEBitmap* IEBitmap = {read=GetIEBitmap};
	virtual void __fastcall CallBitmapChangeEvents(void);
	void * __fastcall RegisterBitmapChangeEvent(TIEBitmapChangeEvent callbackMethod);
	void __fastcall RemoveBitmapChangeEvent(void * callbackHandle);
	Vcl::Graphics::TCanvas* __fastcall GetCanvas(void);
	__property Hyieutils::TIEBitmap* AlphaChannel = {read=GetAlphaChannel};
	__property bool HasAlphaChannel = {read=GetHasAlphaChannel, nodefault};
	
__published:
	__property System::Uitypes::TColor Background = {read=fBackGround, write=SetBackGround, nodefault};
	__property Ctl3D = {read=GetCtl3D, write=SetCtl3D, default=1};
	__property ParentCtl3D = {default=1};
	__property System::Classes::TNotifyEvent OnMouseEnter = {read=fOnMouseEnter, write=fOnMouseEnter};
	__property System::Classes::TNotifyEvent OnMouseLeave = {read=fOnMouseLeave, write=fOnMouseLeave};
	__property Vcl::Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
	__property OnEnter;
	__property OnExit;
	__property OnResize;
	__property Touch;
public:
	/* TWinControl.CreateParented */ inline __fastcall TIEView(HWND ParentWindow) : Vcl::Controls::TCustomControl(ParentWindow) { }
	
};


//-- var, const, procedure ---------------------------------------------------
}	/* namespace Ieview */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_IEVIEW)
using namespace Ieview;
#endif
#pragma pack(pop)
#pragma option pop

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