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

// (DO NOT EDIT: machine generated header) 'ABSDlgWait.pas' rev: 35.00 (Windows)

#ifndef AbsdlgwaitHPP
#define AbsdlgwaitHPP

#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 <System.Classes.hpp>
#include <Vcl.Graphics.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Dialogs.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.ComCtrls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <System.UITypes.hpp>

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

namespace Absdlgwait
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TfrmWait;
//-- type declarations -------------------------------------------------------
class PASCALIMPLEMENTATION TfrmWait : public Vcl::Forms::TForm
{
	typedef Vcl::Forms::TForm inherited;
	
__published:
	Vcl::Stdctrls::TLabel* lMessage;
	Vcl::Stdctrls::TButton* btnCancel;
	Vcl::Comctrls::TProgressBar* pb;
	Vcl::Stdctrls::TButton* btnBgMode;
	Vcl::Extctrls::TTimer* ShowTimer;
	void __fastcall FormHide(System::TObject* Sender);
	void __fastcall FormShow(System::TObject* Sender);
	void __fastcall btnCancelClick(System::TObject* Sender);
	void __fastcall btnBgModeClick(System::TObject* Sender);
	void __fastcall ShowFormOnTimer(System::TObject* Sender);
	void __fastcall FormClose(System::TObject* Sender, System::Uitypes::TCloseAction &Action);
	
private:
	void *EWindowList;
	HWND EActiveWindow;
	System::Classes::TNotifyEvent OldOnRestore;
	bool IsShown;
	bool IsClosed;
	bool __fastcall MessageHook(Winapi::Messages::TMessage &Msg);
	void __fastcall Restore(System::TObject* Sender);
	
public:
	bool Terminated;
	HIDESBASE void __fastcall Show(System::UnicodeString text);
	HIDESBASE void __fastcall Close();
public:
	/* TCustomForm.Create */ inline __fastcall virtual TfrmWait(System::Classes::TComponent* AOwner) : Vcl::Forms::TForm(AOwner) { }
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmWait(System::Classes::TComponent* AOwner, int Dummy) : Vcl::Forms::TForm(AOwner, Dummy) { }
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmWait() { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TfrmWait(HWND ParentWindow) : Vcl::Forms::TForm(ParentWindow) { }
	
};


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

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