// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ahmtformdivider.pas' rev: 6.00

#ifndef ahmtformdividerHPP
#define ahmtformdividerHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Controls.hpp>	// Pascal unit
#include <ahmstdclass.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmtformdivider
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMDivBorder { bdrSunken, bdrRaised, bdrEtched, frmSunken, frmRaised, frmEtched };
#pragma option pop

class DELPHICLASS TAHMFormDivider;
class PASCALIMPLEMENTATION TAHMFormDivider : public Stdctrls::TCustomLabel 
{
	typedef Stdctrls::TCustomLabel inherited;
	
private:
	AnsiString FAboutStr;
	HWND AppHandle;
	HWND MyOwnerhandle;
	Controls::TWinControl* MyOwner;
	bool FAlignWidth;
	int FSideSpace;
	TAHMDivBorder FBorderStyle;
	void __fastcall SetSideSpace(int Value);
	void __fastcall SetAlignWidth(bool Value);
	void __fastcall SetBorderStyle(TAHMDivBorder Value);
	
protected:
	void *OldWndProc;
	void *NewWndProc;
	virtual void __fastcall Loaded(void);
	void __fastcall HookWin(void);
	void __fastcall UnhookWin(void);
	
public:
	virtual void __fastcall Hooked(Messages::TMessage &AMsg);
	__fastcall virtual ~TAHMFormDivider(void);
	__fastcall virtual TAHMFormDivider(Classes::TComponent* AOwner);
	virtual void __fastcall Paint(void);
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property bool AlignWidth = {read=FAlignWidth, write=SetAlignWidth, nodefault};
	__property TAHMDivBorder BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=2};
	__property int SideSpace = {read=FSideSpace, write=SetSideSpace, default=20};
	__property Width ;
	__property Height ;
	__property Font ;
	__property Caption ;
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Ahmtformdivider */
using namespace Ahmtformdivider;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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