home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
FORMS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
36KB
|
826 lines
//----------------------------------------------------------------------------
// Forms.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: Forms.pas
//----------------------------------------------------------------------------
#ifndef FormsHPP
#define FormsHPP
//----------------------------------------------------------------------------
#include <Controls.hpp>
#include <Menus.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Windows.hpp>
#include <Messages.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Forms
{
//-- type declarations -------------------------------------------------------
enum TScrollBarKind { sbHorizontal, sbVertical };
typedef Word TScrollBarInc;
class __declspec(delphiclass) TControlScrollBar;
class __declspec(delphiclass) TScrollingWinControl;
class __declspec(pascalimplementation) TScrollingWinControl : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TControlScrollBar* FHorzScrollBar;
TControlScrollBar* FVertScrollBar;
bool FAutoScroll;
bool FSizing;
bool FUpdatingScrollBars;
Byte FReserved;
void __fastcall CalcAutoRange(void);
void __fastcall ScaleScrollBars(int M, int D);
void __fastcall SetAutoScroll(bool Value);
void __fastcall SetHorzScrollBar(TControlScrollBar* Value);
void __fastcall SetVertScrollBar(TControlScrollBar* Value);
void __fastcall UpdateScrollBars(void);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall WMHScroll(Messages::TWMScroll &Message);
HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
protected:
void __fastcall AutoScrollInView(Controls::TControl* AControl);
virtual void __fastcall ChangeScale(int M, int D);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &ARect);
__property bool AutoScroll = {read=FAutoScroll, write=SetAutoScroll, default=1};
public:
__fastcall virtual TScrollingWinControl(Classes::TComponent* AOwner);
__fastcall virtual ~TScrollingWinControl(void);
void __fastcall ScrollInView(Controls::TControl* AControl);
__published:
__property TControlScrollBar* HorzScrollBar = {read=FHorzScrollBar, write=SetHorzScrollBar, nodefault
};
__property TControlScrollBar* VertScrollBar = {read=FVertScrollBar, write=SetVertScrollBar, nodefault
};
public:
/* TWinControl.CreateParented */ __fastcall TScrollingWinControl(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
};
class __declspec(pascalimplementation) TControlScrollBar : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TScrollingWinControl* FControl;
TScrollBarInc FIncrement;
int FPosition;
int FRange;
int FCalcRange;
TScrollBarKind FKind;
Word FMargin;
bool FVisible;
bool FTracking;
bool FScaled;
__fastcall TControlScrollBar(TScrollingWinControl* AControl, TScrollBarKind AKind);
void __fastcall CalcAutoRange(void);
int __fastcall ControlSize(bool ControlSB, bool AssumeSB);
void __fastcall DoSetRange(int Value);
int __fastcall GetScrollPos(void);
bool __fastcall NeedsScrollBarVisible(void);
void __fastcall ScrollMessage(Messages::TWMScroll &Msg);
void __fastcall SetPosition(int Value);
void __fastcall SetRange(int Value);
void __fastcall SetVisible(bool Value);
bool __fastcall IsRangeStored(void);
void __fastcall Update(bool ControlSB, bool AssumeSB);
public:
virtual void __fastcall Assign(Classes::TPersistent* Source);
__property TScrollBarKind Kind = {read=FKind, nodefault};
__property int ScrollPos = {read=GetScrollPos, nodefault};
__published:
__property Word Margin = {read=FMargin, write=FMargin, default=0};
__property TScrollBarInc Increment = {read=FIncrement, write=FIncrement, default=8};
__property int Range = {read=FRange, write=SetRange, stored=IsRangeStored, default=0};
__property int Position = {read=FPosition, write=SetPosition, default=0};
__property bool Tracking = {read=FTracking, write=FTracking, default=0};
__property bool Visible = {read=FVisible, write=SetVisible, default=1};
public:
/* TObject.Create */ __fastcall TControlScrollBar(void) : Classes::TPersistent() { }
/* TObject.Destroy */ __fastcall virtual ~TControlScrollBar(void) { }
};
enum TFormBorderStyle { bsNone, bsSingle, bsSizeable, bsDialog, bsToolWindow, bsSizeToolWin };
typedef TFormBorderStyle TBorderStyle;
class __declspec(delphiclass) TScrollBox;
class __declspec(pascalimplementation) TScrollBox : public TScrollingWinControl
{
typedef TScrollingWinControl inherited;
private:
TFormBorderStyle FBorderStyle;
Byte FReserved;
Classes::TNotifyEvent FOnResize;
void __fastcall SetBorderStyle(TBorderStyle Value);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall WMNCHitTest(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall Resize(void);
public:
__fastcall virtual TScrollBox(Classes::TComponent* AOwner);
__published:
__property Align ;
__property AutoScroll ;
__property TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Color ;
__property Ctl3D ;
__property Font ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
public:
/* TScrollingWinControl.Destroy */ __fastcall virtual ~TScrollBox(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TScrollBox(HWND ParentWindow) : Forms::TScrollingWinControl(
ParentWindow) { }
};
class __declspec(delphiclass) TDesigner;
class __declspec(delphiclass) TForm;
enum TBorderIcon { biSystemMenu, biMinimize, biMaximize, biHelp };
typedef Set<TBorderIcon, biSystemMenu, biHelp> TBorderIcons;
enum TWindowState { wsNormal, wsMinimized, wsMaximized };
enum TShowAction { saIgnore, saRestore, saMinimize, saMaximize };
enum TFormStyle { fsNormal, fsMDIChild, fsMDIForm, fsStayOnTop };
enum TPosition { poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly, poScreenCenter };
enum TTileMode { tbHorizontal, tbVertical };
enum Forms_6 { fsCreating, fsVisible, fsShowing, fsModal, fsCreatedMDIChild };
typedef Set<Forms_6, fsCreating, fsCreatedMDIChild> TFormState;
enum TPrintScale { poNone, poProportional, poPrintToFit };
typedef int TModalResult;
class __declspec(delphiclass) TOleFormObject;
class __declspec(pascalimplementation) TOleFormObject : public System::TObject
{
typedef System::TObject inherited;
protected:
virtual void __fastcall OnDestroy(void) = 0;
virtual void __fastcall OnResize(void) = 0;
public:
/* TObject.Create */ __fastcall TOleFormObject(void) : System::TObject() { }
/* TObject.Destroy */ __fastcall virtual ~TOleFormObject(void) { }
};
enum TCloseAction { caNone, caHide, caFree, caMinimize };
typedef void __fastcall (__closure *TCloseEvent)(System::TObject* Sender, TCloseAction &Action);
typedef void __fastcall (__closure *TCloseQueryEvent)(System::TObject* Sender, bool &CanClose);
class __declspec(pascalimplementation) TForm : public TScrollingWinControl
{
typedef TScrollingWinControl inherited;
private:
Controls::TWinControl* FActiveControl;
Controls::TWinControl* FFocusedControl;
TBorderIcons FBorderIcons;
TFormBorderStyle FBorderStyle;
TWindowState FWindowState;
TShowAction FShowAction;
bool FKeyPreview;
bool FActive;
bool FIgnoreFontProperty;
TFormStyle FFormStyle;
TPosition FPosition;
TTileMode FTileMode;
TFormState FFormState;
bool FDropTarget;
TPrintScale FPrintScale;
Controls::TControlCanvas* FCanvas;
Graphics::TIcon* FIcon;
Menus::TMainMenu* FMenu;
TModalResult FModalResult;
TDesigner* FDesigner;
HWND FClientHandle;
Menus::TMenuItem* FWindowMenu;
int FPixelsPerInch;
Menus::TMenuItem* FObjectMenuItem;
TOleFormObject* FOleFormObject;
int FClientWidth;
int FClientHeight;
int FTextHeight;
void *FDefClientProc;
void *FClientInstance;
Controls::TWinControl* FActiveOleControl;
Classes::TNotifyEvent FOnActivate;
TCloseEvent FOnClose;
TCloseQueryEvent FOnCloseQuery;
Classes::TNotifyEvent FOnDeactivate;
Classes::TNotifyEvent FOnHide;
Classes::TNotifyEvent FOnPaint;
Classes::TNotifyEvent FOnResize;
Classes::TNotifyEvent FOnShow;
Classes::TNotifyEvent FOnCreate;
Classes::TNotifyEvent FOnDestroy;
virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
void __fastcall RefreshMDIMenu(void);
void __fastcall ClientWndProc(Messages::TMessage &Message);
void __fastcall CloseModal(void);
TForm* __fastcall GetActiveMDIChild(void);
Graphics::TCanvas* __fastcall GetCanvas(void);
HICON __fastcall GetIconHandle(void);
int __fastcall GetMDIChildCount(void);
TForm* __fastcall GetMDIChildren(int I);
int __fastcall GetPixelsPerInch(void);
bool __fastcall GetScaled(void);
int __fastcall GetTextHeight(void);
void __fastcall IconChanged(System::TObject* Sender);
bool __fastcall IsAutoScrollStored(void);
bool __fastcall IsClientSizeStored(void);
HIDESBASE bool __fastcall IsColorStored(void);
bool __fastcall IsForm(void);
bool __fastcall IsFormSizeStored(void);
bool __fastcall IsIconStored(void);
void __fastcall MergeMenu(bool MergeState);
void __fastcall ReadTextHeight(Classes::TReader* Reader);
void __fastcall SetActive(bool Value);
void __fastcall SetActiveControl(Controls::TWinControl* Control);
void __fastcall SetBorderIcons(TBorderIcons Value);
void __fastcall SetBorderStyle(TFormBorderStyle Value);
HIDESBASE void __fastcall SetClientHeight(int Value);
HIDESBASE void __fastcall SetClientWidth(int Value);
void __fastcall SetDesigner(TDesigner* ADesigner);
void __fastcall SetFormStyle(TFormStyle Value);
void __fastcall SetIcon(Graphics::TIcon* Value);
void __fastcall SetMenu(Menus::TMainMenu* Value);
void __fastcall SetPixelsPerInch(int Value);
void __fastcall SetPosition(TPosition Value);
void __fastcall SetScaled(bool Value);
HIDESBASE void __fastcall SetVisible(bool Value);
void __fastcall SetWindowFocus(void);
void __fastcall SetWindowMenu(Menus::TMenuItem* Value);
void __fastcall SetObjectMenuItem(Menus::TMenuItem* Value);
void __fastcall SetWindowState(TWindowState Value);
void __fastcall WritePixelsPerInch(Classes::TWriter* Writer);
void __fastcall WriteTextHeight(Classes::TWriter* Writer);
Graphics::TColor __fastcall NormalColor(void);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
MESSAGE void __fastcall WMIconEraseBkgnd(Messages::TWMEraseBkgnd &Message);
MESSAGE void __fastcall WMQueryDragIcon(Messages::TWMNoParams &Message);
MESSAGE void __fastcall WMNCCreate(Messages::TWMNCCreate &Message);
HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMCommand(Messages::TWMCommand &Message);
MESSAGE void __fastcall WMInitMenuPopup(Messages::TWMInitMenuPopup &Message);
MESSAGE void __fastcall WMMenuSelect(Messages::TWMMenuSelect &Message);
MESSAGE void __fastcall WMActivate(Messages::TWMActivate &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
MESSAGE void __fastcall WMClose(Messages::TWMNoParams &Message);
MESSAGE void __fastcall WMQueryEndSession(Messages::TWMQueryEndSession &Message);
HIDESBASE MESSAGE void __fastcall WMSysCommand(Messages::TWMSysCommand &Message);
MESSAGE void __fastcall WMShowWindow(Messages::TWMShowWindow &Message);
MESSAGE void __fastcall WMMDIActivate(Messages::TWMMDIActivate &Message);
MESSAGE void __fastcall WMNextDlgCtl(Messages::TWMNextDlgCtl &Message);
MESSAGE void __fastcall WMEnterMenuLoop(Messages::TMessage &Message);
MESSAGE void __fastcall WMHelp(Messages::TWMHelp &Message);
MESSAGE void __fastcall CMActivate(Messages::TWMNoParams &Message);
MESSAGE void __fastcall CMAppSysCommand(Messages::TMessage &Message);
MESSAGE void __fastcall CMDeactivate(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMMenuChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMShowingChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMIconChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMRelease(Messages::TMessage &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMUIActivate(void *Message);
protected:
virtual void __fastcall Activate(void);
virtual void __fastcall ActiveChanged(void);
virtual void __fastcall ChangeScale(int M, int D);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWindowHandle(const Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall Deactivate(void);
virtual void __fastcall DefaultHandler(void *Message);
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
virtual void __fastcall DestroyWindowHandle(void);
virtual void __fastcall DoHide(void);
virtual void __fastcall DoShow(void);
virtual Windows::TRect __fastcall GetClientRect(void);
virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall Paint(void);
virtual void __fastcall PaintWindow(HDC DC);
virtual bool __fastcall PaletteChanged(bool Foreground);
virtual void __fastcall SetChildOrder(Classes::TComponent* Child, int Order);
virtual void __fastcall ReadState(Classes::TReader* Reader);
virtual void __fastcall Resize(void);
virtual void __fastcall SetParent(Controls::TWinControl* AParent);
virtual void __fastcall ValidateRename(Classes::TComponent* AComponent, const System::AnsiString CurName
, const System::AnsiString NewName);
virtual void __fastcall VisibleChanging(void);
virtual void __fastcall WndProc(Messages::TMessage &Message);
virtual void __fastcall AfterConstruction(void);
virtual void __fastcall BeforeDestruction(void);
public:
__fastcall virtual TForm(Classes::TComponent* AOwner);
__fastcall TForm(Classes::TComponent* AOwner, int Dummy);
__fastcall virtual ~TForm(void);
void __fastcall ArrangeIcons(void);
void __fastcall Cascade(void);
void __fastcall Close(void);
bool __fastcall CloseQuery(void);
void __fastcall DefocusControl(Controls::TWinControl* Control, bool Removing);
void __fastcall FocusControl(Controls::TWinControl* Control);
Graphics::TBitmap* __fastcall GetFormImage(void);
HIDESBASE void __fastcall Hide(void);
void __fastcall Next(void);
void __fastcall Previous(void);
void __fastcall Print(void);
void __fastcall Release(void);
HIDESBASE void __fastcall SendCancelMode(Controls::TControl* Sender);
virtual void __fastcall SetFocus(void);
bool __fastcall SetFocusedControl(Controls::TWinControl* Control);
HIDESBASE void __fastcall Show(void);
int __fastcall ShowModal(void);
void __fastcall Tile(void);
__property bool Active = {read=FActive, nodefault};
__property TForm* ActiveMDIChild = {read=GetActiveMDIChild, nodefault};
__property Controls::TWinControl* ActiveOleControl = {read=FActiveOleControl, write=FActiveOleControl
, nodefault};
__property Graphics::TCanvas* Canvas = {read=GetCanvas, nodefault};
__property HWND ClientHandle = {read=FClientHandle, nodefault};
__property TDesigner* Designer = {read=FDesigner, write=SetDesigner, nodefault};
__property bool DropTarget = {read=FDropTarget, write=FDropTarget, nodefault};
__property bool IgnoreFontProperty = {read=FIgnoreFontProperty, write=FIgnoreFontProperty, nodefault
};
__property TModalResult ModalResult = {read=FModalResult, write=FModalResult, nodefault};
__property int MDIChildCount = {read=GetMDIChildCount, nodefault};
__property TForm* MDIChildren[int I] = {read=GetMDIChildren};
__property TOleFormObject* OleFormObject = {read=FOleFormObject, write=FOleFormObject, nodefault};
__property TTileMode TileMode = {read=FTileMode, write=FTileMode, default=0};
__published:
__property Controls::TWinControl* ActiveControl = {read=FActiveControl, write=SetActiveControl, stored=
IsForm, nodefault};
__property TBorderIcons BorderIcons = {read=FBorderIcons, write=SetBorderIcons, stored=IsForm, default=7
};
__property TFormBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, stored=IsForm,
default=2};
__property AutoScroll = {stored=IsAutoScrollStored, default=1};
__property Caption = {stored=IsForm};
__property ClientHeight = {write=SetClientHeight, stored=IsClientSizeStored};
__property ClientWidth = {write=SetClientWidth, stored=IsClientSizeStored};
__property Ctl3D ;
__property Color = {stored=IsColorStored, default=-2147483643};
__property Enabled ;
__property Font ;
__property TFormStyle FormStyle = {read=FFormStyle, write=SetFormStyle, stored=IsForm, default=0};
__property Height = {stored=IsFormSizeStored};
__property HorzScrollBar = {stored=IsForm};
__property Graphics::TIcon* Icon = {read=FIcon, write=SetIcon, stored=IsIconStored, nodefault};
__property bool KeyPreview = {read=FKeyPreview, write=FKeyPreview, stored=IsForm, default=0};
__property Menus::TMainMenu* Menu = {read=FMenu, write=SetMenu, stored=IsForm, nodefault};
__property Menus::TMenuItem* ObjectMenuItem = {read=FObjectMenuItem, write=SetObjectMenuItem, stored=
IsForm, nodefault};
__property int PixelsPerInch = {read=GetPixelsPerInch, write=SetPixelsPerInch, stored=false, nodefault
};
__property PopupMenu = {stored=IsForm};
__property TPosition Position = {read=FPosition, write=SetPosition, stored=IsForm, default=0};
__property TPrintScale PrintScale = {read=FPrintScale, write=FPrintScale, stored=IsForm, default=1}
;
__property bool Scaled = {read=GetScaled, write=SetScaled, stored=IsForm, default=1};
__property ShowHint ;
__property VertScrollBar = {stored=IsForm};
__property Visible = {write=SetVisible, default=0};
__property Width = {stored=IsFormSizeStored};
__property TWindowState WindowState = {read=FWindowState, write=SetWindowState, stored=IsForm, default=0
};
__property Menus::TMenuItem* WindowMenu = {read=FWindowMenu, write=SetWindowMenu, stored=IsForm, nodefault
};
__property Classes::TNotifyEvent OnActivate = {read=FOnActivate, write=FOnActivate, stored=IsForm};
__property OnClick = {stored=IsForm};
__property TCloseEvent OnClose = {read=FOnClose, write=FOnClose, stored=IsForm};
__property TCloseQueryEvent OnCloseQuery = {read=FOnCloseQuery, write=FOnCloseQuery, stored=IsForm}
;
__property Classes::TNotifyEvent OnCreate = {read=FOnCreate, write=FOnCreate, stored=IsForm};
__property OnDblClick = {stored=IsForm};
__property Classes::TNotifyEvent OnDestroy = {read=FOnDestroy, write=FOnDestroy, stored=IsForm};
__property Classes::TNotifyEvent OnDeactivate = {read=FOnDeactivate, write=FOnDeactivate, stored=IsForm
};
__property OnDragDrop = {stored=IsForm};
__property OnDragOver = {stored=IsForm};
__property Classes::TNotifyEvent OnHide = {read=FOnHide, write=FOnHide, stored=IsForm};
__property OnKeyDown = {stored=IsForm};
__property OnKeyPress = {stored=IsForm};
__property OnKeyUp = {stored=IsForm};
__property OnMouseDown = {stored=IsForm};
__property OnMouseMove = {stored=IsForm};
__property OnMouseUp = {stored=IsForm};
__property Classes::TNotifyEvent OnPaint = {read=FOnPaint, write=FOnPaint, stored=IsForm};
__property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize, stored=IsForm};
__property Classes::TNotifyEvent OnShow = {read=FOnShow, write=FOnShow, stored=IsForm};
public:
/* TWinControl.CreateParented */ __fastcall TForm(HWND ParentWindow) : Forms::TScrollingWinControl(
ParentWindow) { }
};
class __declspec(pascalimplementation) TDesigner : public System::TObject
{
typedef System::TObject inherited;
private:
TForm* FForm;
bool __fastcall GetIsControl(void);
void __fastcall SetIsControl(bool Value);
public:
virtual bool __fastcall IsDesignMsg(Controls::TControl* Sender, Messages::TMessage &Message) = 0;
virtual void __fastcall Modified(void) = 0;
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
) = 0;
virtual void __fastcall PaintGrid(void) = 0;
virtual void __fastcall ValidateRename(Classes::TComponent* AComponent, const System::AnsiString CurName
, const System::AnsiString NewName) = 0;
__property bool IsControl = {read=GetIsControl, write=SetIsControl, nodefault};
__property TForm* Form = {read=FForm, write=FForm, nodefault};
public:
/* TObject.Create */ __fastcall TDesigner(void) : System::TObject() { }
/* TObject.Destroy */ __fastcall virtual ~TDesigner(void) { }
};
typedef System::TMetaClass*TFormClass;
class __declspec(delphiclass) TDataModule;
class __declspec(pascalimplementation) TDataModule : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
POINT FDesignSize;
POINT FDesignOffset;
Classes::TNotifyEvent FOnCreate;
Classes::TNotifyEvent FOnDestroy;
void __fastcall ReadHeight(Classes::TReader* Reader);
void __fastcall ReadHorizontalOffset(Classes::TReader* Reader);
void __fastcall ReadVerticalOffset(Classes::TReader* Reader);
void __fastcall ReadWidth(Classes::TReader* Reader);
void __fastcall WriteWidth(Classes::TWriter* Writer);
void __fastcall WriteHorizontalOffset(Classes::TWriter* Writer);
void __fastcall WriteVerticalOffset(Classes::TWriter* Writer);
void __fastcall WriteHeight(Classes::TWriter* Writer);
protected:
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
virtual void __fastcall AfterConstruction(void);
virtual void __fastcall BeforeDestruction(void);
public:
__fastcall virtual TDataModule(Classes::TComponent* AOwner);
__fastcall TDataModule(Classes::TComponent* AOwner, int Dummy);
__fastcall virtual ~TDataModule(void);
__property POINT DesignOffset = {read=FDesignOffset, write=FDesignOffset};
__property POINT DesignSize = {read=FDesignSize, write=FDesignSize};
__published:
__property Classes::TNotifyEvent OnCreate = {read=FOnCreate, write=FOnCreate};
__property Classes::TNotifyEvent OnDestroy = {read=FOnDestroy, write=FOnDestroy};
};
struct TCursorRec;
typedef TCursorRec *PCursorRec;
struct TCursorRec
{
TCursorRec *Next;
int Index;
HICON Handle;
} ;
class __declspec(delphiclass) TScreen;
class __declspec(pascalimplementation) TScreen : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
Classes::TStrings* FFonts;
Classes::TStrings* FImes;
System::AnsiString FDefaultIme;
HKL FDefaultKbLayout;
Classes::TList* FRestoreFocusForms;
int FPixelsPerInch;
Controls::TCursor FCursor;
Classes::TList* FForms;
Classes::TList* FDataModules;
TCursorRec *FCursorList;
HICON FDefaultCursor;
Controls::TWinControl* FActiveControl;
TForm* FActiveForm;
Controls::TWinControl* FLastActiveControl;
TForm* FLastActiveForm;
TForm* FFocusedForm;
Classes::TNotifyEvent FOnActiveControlChange;
Classes::TNotifyEvent FOnActiveFormChange;
void __fastcall AddDataModule(TDataModule* DataModule);
void __fastcall AddForm(TForm* AForm);
void __fastcall CreateCursors(void);
void __fastcall DeleteCursor(int Index);
void __fastcall DestroyCursors(void);
void __fastcall InitImes(void);
HICON __fastcall GetCursors(int Index);
TDataModule* __fastcall GetDataModule(int Index);
int __fastcall GetDataModuleCount(void);
int __fastcall GetHeight(void);
int __fastcall GetWidth(void);
TForm* __fastcall GetForm(int Index);
int __fastcall GetFormCount(void);
void __fastcall InsertCursor(int Index, HICON Handle);
void __fastcall RemoveDataModule(TDataModule* DataModule);
void __fastcall RemoveForm(TForm* AForm);
void __fastcall SetCursors(int Index, HICON Handle);
void __fastcall SetCursor(Controls::TCursor Value);
void __fastcall UpdateLastActive(void);
public:
__fastcall virtual TScreen(Classes::TComponent* AOwner);
__fastcall virtual ~TScreen(void);
__property Controls::TWinControl* ActiveControl = {read=FActiveControl, nodefault};
__property TForm* ActiveForm = {read=FActiveForm, nodefault};
__property Controls::TCursor Cursor = {read=FCursor, write=SetCursor, nodefault};
__property HICON Cursors[int Index] = {read=GetCursors, write=SetCursors};
__property TDataModule* DataModules[int Index] = {read=GetDataModule};
__property int DataModuleCount = {read=GetDataModuleCount, nodefault};
__property Classes::TStrings* Fonts = {read=FFonts, nodefault};
__property int Height = {read=GetHeight, nodefault};
__property Classes::TStrings* Imes = {read=FImes, nodefault};
__property System::AnsiString DefaultIme = {read=FDefaultIme, nodefault};
__property HKL DefaultKbLayout = {read=FDefaultKbLayout, nodefault};
__property Classes::TList* RestoreFocusForms = {read=FRestoreFocusForms, write=FRestoreFocusForms,
nodefault};
__property int PixelsPerInch = {read=FPixelsPerInch, nodefault};
__property int Width = {read=GetWidth, nodefault};
__property TForm* Forms[int Index] = {read=GetForm};
__property int FormCount = {read=GetFormCount, nodefault};
__property Classes::TNotifyEvent OnActiveControlChange = {read=FOnActiveControlChange, write=FOnActiveControlChange
};
__property Classes::TNotifyEvent OnActiveFormChange = {read=FOnActiveFormChange, write=FOnActiveFormChange
};
};
enum TTimerMode { tmShow, tmHide };
struct THintInfo
{
Controls::TControl* HintControl;
POINT HintPos;
int HintMaxWidth;
Graphics::TColor HintColor;
Windows::TRect CursorRect;
POINT CursorPos;
} ;
typedef void __fastcall (__closure *TMessageEvent)(tagMSG &Msg, bool &Handled);
typedef void __fastcall (__closure *TExceptionEvent)(System::TObject* Sender, Sysutils::Exception* E
);
typedef void __fastcall (__closure *TIdleEvent)(System::TObject* Sender, bool &Done);
typedef void __fastcall (__closure *TShowHintEvent)( System::AnsiString &HintStr, bool &CanShow, THintInfo
&HintInfo);
typedef bool __fastcall (__closure *TWindowHook)(Messages::TMessage &Message);
class __declspec(delphiclass) TApplication;
class __declspec(pascalimplementation) TApplication : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
HWND FHandle;
void *FObjectInstance;
TForm* FMainForm;
Controls::TControl* FMouseControl;
System::AnsiString FHelpFile;
System::AnsiString FHint;
bool FHintActive;
bool FUpdateFormatSettings;
bool FShowMainForm;
Graphics::TColor FHintColor;
Controls::TControl* FHintControl;
Windows::TRect FHintCursorRect;
int FHintPause;
int FHintShortPause;
int FHintHidePause;
Controls::THintWindow* FHintWindow;
bool FShowHint;
bool FTimerActive;
TTimerMode FTimerMode;
Word FTimerHandle;
System::AnsiString FTitle;
Classes::TList* FTopMostList;
int FTopMostLevel;
Graphics::TIcon* FIcon;
bool FTerminate;
bool FActive;
bool FIgnoreFontProperty;
bool FHandleCreated;
bool FRunning;
Classes::TList* FWindowHooks;
void *FWindowList;
HWND FDialogHandle;
TExceptionEvent FOnException;
TMessageEvent FOnMessage;
Classes::THelpEvent FOnHelp;
Classes::TNotifyEvent FOnHint;
TIdleEvent FOnIdle;
Classes::TNotifyEvent FOnDeactivate;
Classes::TNotifyEvent FOnActivate;
TShowHintEvent FOnShowHint;
Classes::TNotifyEvent FOnMinimize;
Classes::TNotifyEvent FOnRestore;
void __fastcall ActivateHint(const POINT &CursorPos);
bool __fastcall CheckIniChange(Messages::TMessage &Message);
HWND __fastcall GetDialogHandle(void);
System::AnsiString __fastcall GetExeName(void);
HICON __fastcall GetIconHandle(void);
System::AnsiString __fastcall GetTitle(void);
void __fastcall HintTimerExpired(void);
void __fastcall IconChanged(System::TObject* Sender);
void __fastcall Idle(void);
bool __fastcall InvokeHelp(Word Command, long Data);
bool __fastcall IsDlgMsg(MSG &Msg);
bool __fastcall IsHintMsg(MSG &Msg);
bool __fastcall IsKeyMsg(MSG &Msg);
bool __fastcall IsMDIMsg(MSG &Msg);
void __fastcall NotifyForms(Word Msg);
bool __fastcall ProcessMessage(void);
void __fastcall SetDialogHandle(HWND Value);
void __fastcall SetHandle(HWND Value);
void __fastcall SetHint(const System::AnsiString Value);
void __fastcall SetHintColor(Graphics::TColor Value);
void __fastcall SetIcon(Graphics::TIcon* Value);
void __fastcall SetShowHint(bool Value);
void __fastcall SetTitle(const System::AnsiString Value);
void __fastcall StartHintTimer(int Value, TTimerMode TimerMode);
void __fastcall StopHintTimer(void);
void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall virtual TApplication(Classes::TComponent* AOwner);
__fastcall virtual ~TApplication(void);
void __fastcall BringToFront(void);
void __fastcall ControlDestroyed(Controls::TControl* Control);
void __fastcall CancelHint(void);
void __fastcall CreateForm(System::TMetaClass* InstanceClass, void *Reference);
void __fastcall CreateHandle(void);
void __fastcall HandleException(System::TObject* Sender);
void __fastcall HandleMessage(void);
bool __fastcall HelpCommand(int Command, long Data);
bool __fastcall HelpContext(Classes::THelpContext Context);
bool __fastcall HelpJump(const System::AnsiString JumpID);
void __fastcall HideHint(void);
void __fastcall HintMouseMessage(Controls::TControl* Control, Messages::TMessage &Message);
void __fastcall HookMainWindow(TWindowHook Hook);
void __fastcall Initialize(void);
int __fastcall MessageBox(char * Text, char * Caption, Word Flags);
void __fastcall Minimize(void);
void __fastcall NormalizeTopMosts(void);
void __fastcall ProcessMessages(void);
void __fastcall Restore(void);
void __fastcall RestoreTopMosts(void);
void __fastcall Run(void);
void __fastcall ShowException(Sysutils::Exception* E);
void __fastcall Terminate(void);
void __fastcall UnhookMainWindow(TWindowHook Hook);
__property bool Active = {read=FActive, nodefault};
__property HWND DialogHandle = {read=GetDialogHandle, write=SetDialogHandle, nodefault};
__property System::AnsiString ExeName = {read=GetExeName, nodefault};
__property HWND Handle = {read=FHandle, write=SetHandle, nodefault};
__property System::AnsiString HelpFile = {read=FHelpFile, write=FHelpFile, nodefault};
__property System::AnsiString Hint = {read=FHint, write=SetHint, nodefault};
__property Graphics::TColor HintColor = {read=FHintColor, write=SetHintColor, nodefault};
__property int HintPause = {read=FHintPause, write=FHintPause, nodefault};
__property int HintShortPause = {read=FHintShortPause, write=FHintShortPause, nodefault};
__property int HintHidePause = {read=FHintHidePause, write=FHintHidePause, nodefault};
__property Graphics::TIcon* Icon = {read=FIcon, write=SetIcon, nodefault};
__property bool IgnoreFontProperty = {read=FIgnoreFontProperty, write=FIgnoreFontProperty, nodefault
};
__property TForm* MainForm = {read=FMainForm, nodefault};
__property bool ShowHint = {read=FShowHint, write=SetShowHint, nodefault};
__property bool ShowMainForm = {read=FShowMainForm, write=FShowMainForm, nodefault};
__property bool Terminated = {read=FTerminate, nodefault};
__property System::AnsiString Title = {read=GetTitle, write=SetTitle, nodefault};
__property bool UpdateFormatSettings = {read=FUpdateFormatSettings, write=FUpdateFormatSettings, nodefault
};
__property Classes::TNotifyEvent OnActivate = {read=FOnActivate, write=FOnActivate};
__property Classes::TNotifyEvent OnDeactivate = {read=FOnDeactivate, write=FOnDeactivate};
__property TExceptionEvent OnException = {read=FOnException, write=FOnException};
__property TIdleEvent OnIdle = {read=FOnIdle, write=FOnIdle};
__property Classes::THelpEvent OnHelp = {read=FOnHelp, write=FOnHelp};
__property Classes::TNotifyEvent OnHint = {read=FOnHint, write=FOnHint};
__property TMessageEvent OnMessage = {read=FOnMessage, write=FOnMessage};
__property Classes::TNotifyEvent OnMinimize = {read=FOnMinimize, write=FOnMinimize};
__property Classes::TNotifyEvent OnRestore = {read=FOnRestore, write=FOnRestore};
__property TShowHintEvent OnShowHint = {read=FOnShowHint, write=FOnShowHint};
};
typedef void __fastcall (__closure *TWndMethod)(Messages::TMessage &Message);
//-- var, const, procedure ---------------------------------------------------
extern TApplication* Application;
extern TScreen* Screen;
extern void *Ctl3DBtnWndProc;
extern long __stdcall (*Ctl3DDlgFramePaint)(HWND Window, long Msg, long wParam, long lParam);
extern long __stdcall (*Ctl3DCtlColorEx)(HWND Window, long Msg, long wParam, long lParam);
extern System::TMetaClass*HintWindowClass;
extern void * __fastcall DisableTaskWindows(HWND ActiveWindow);
extern void __fastcall EnableTaskWindows(void * WindowList);
extern void __fastcall InitCtl3D(void);
extern void __fastcall DoneCtl3D(void);
extern bool __fastcall Subclass3DWnd(HWND Wnd);
extern void __fastcall Subclass3DDlg(HWND Wnd, Word Flags);
extern void __fastcall SetAutoSubClass(bool Enable);
extern void * __fastcall MakeObjectInstance(TWndMethod Method);
extern void __fastcall FreeObjectInstance(void * ObjectInstance);
extern HWND __fastcall AllocateHWnd(TWndMethod Method);
extern void __fastcall DeallocateHWnd(HWND Wnd);
extern Classes::TShiftState __fastcall KeysToShiftState(Word Keys);
extern Classes::TShiftState __fastcall KeyDataToShiftState(long KeyData);
extern bool __fastcall IsAccel(Word VK, const System::AnsiString Str);
extern TForm* __fastcall GetParentForm(Controls::TControl* Control);
extern TForm* __fastcall ValidParentForm(Controls::TControl* Control);
//-- template instantiations -------------------------------------------------
template class TFormState ;
template class TBorderIcons ;
} /* namespace Forms */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Forms;
#endif
//-- end unit ----------------------------------------------------------------
#endif // Forms