// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'AMNShellPopup.pas' rev: 3.00

#ifndef AMNShellPopupHPP
#define AMNShellPopupHPP
#include <Options.hpp>
#include <ActiveX.hpp>
#include <ShlObj.hpp>
#include <Menus.hpp>
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Amnshellpopup
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAMNPropDlg;
class PASCALIMPLEMENTATION TAMNPropDlg : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	System::AnsiString fShellItem;
	bool __fastcall DisplayPropertiesDialog(const System::AnsiString Filename, HWND Parent);
	System::AnsiString __fastcall GetVersion(void);
	void __fastcall SetVersion(const System::AnsiString Val);
	
public:
	__fastcall virtual TAMNPropDlg(Classes::TComponent* AOwner);
	__fastcall virtual ~TAMNPropDlg(void);
	bool __fastcall Execute(void);
	
__published:
	__property System::AnsiString ShellItem = {read=fShellItem, write=fShellItem};
	__property System::AnsiString Version = {read=GetVersion, write=SetVersion};
};

class DELPHICLASS TAMNShellPopup;
class PASCALIMPLEMENTATION TAMNShellPopup : public Menus::TPopupMenu 
{
	typedef Menus::TPopupMenu inherited;
	
private:
	Classes::TNotifyEvent FOnPopup;
	System::AnsiString fShellItem;
	System::AnsiString __fastcall GetVersion(void);
	void __fastcall SetVersion(const System::AnsiString Val);
	bool __fastcall DisplayContextMenu(const System::AnsiString Filename, HWND Parent, const tagPOINT &
		Pos);
	
public:
	__fastcall virtual TAMNShellPopup(Classes::TComponent* aOwner);
	__fastcall virtual ~TAMNShellPopup(void);
	void __fastcall ShPopup(void);
	virtual void __fastcall Popup(int X, int Y);
	
__published:
	__property System::AnsiString ShellItem = {read=fShellItem, write=fShellItem};
	__property System::AnsiString Version = {read=GetVersion, write=SetVersion};
	__property Classes::TNotifyEvent OnPopup = {read=FOnPopup, write=FOnPopup};
};

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE GUID IID_IContextMenu3;

}	/* namespace Amnshellpopup */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Amnshellpopup;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// AMNShellPopup
