home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
STDCTRLS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
39KB
|
1,092 lines
//----------------------------------------------------------------------------
// StdCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: StdCtrls.pas
//----------------------------------------------------------------------------
#ifndef StdCtrlsHPP
#define StdCtrlsHPP
//----------------------------------------------------------------------------
#include <Graphics.hpp>
#include <Menus.hpp>
#include <Forms.hpp>
#include <Controls.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 Stdctrls
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TCustomGroupBox;
class __declspec(pascalimplementation) TCustomGroupBox : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
protected:
virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
virtual void __fastcall Paint(void);
public:
__fastcall virtual TCustomGroupBox(Classes::TComponent* AOwner);
public:
/* TCustomControl.Destroy */ __fastcall virtual ~TCustomGroupBox(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TCustomGroupBox(HWND ParentWindow) : Controls::TCustomControl(
ParentWindow) { }
};
class __declspec(delphiclass) TGroupBox;
class __declspec(pascalimplementation) TGroupBox : public TCustomGroupBox
{
typedef TCustomGroupBox inherited;
__published:
__property Align ;
__property Caption ;
__property Color ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__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 OnStartDrag ;
public:
/* TCustomGroupBox.Create */ __fastcall virtual TGroupBox(Classes::TComponent* AOwner) : Stdctrls::
TCustomGroupBox(AOwner) { }
public:
/* TCustomControl.Destroy */ __fastcall virtual ~TGroupBox(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TGroupBox(HWND ParentWindow) : Stdctrls::TCustomGroupBox(
ParentWindow) { }
};
class __declspec(delphiclass) TCustomLabel;
class __declspec(pascalimplementation) TCustomLabel : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
Controls::TWinControl* FFocusControl;
TAlignment FAlignment;
bool FAutoSize;
bool FWordWrap;
bool FShowAccelChar;
void __fastcall AdjustBounds(void);
void __fastcall DoDrawText(Windows::TRect &Rect, Word Flags);
bool __fastcall GetTransparent(void);
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetFocusControl(Controls::TWinControl* Value);
void __fastcall SetShowAccelChar(bool Value);
void __fastcall SetTransparent(bool Value);
void __fastcall SetWordWrap(bool Value);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
protected:
virtual System::AnsiString __fastcall GetLabelText(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall Paint(void);
virtual void __fastcall SetAutoSize(bool Value);
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
__property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=1};
__property Controls::TWinControl* FocusControl = {read=FFocusControl, write=SetFocusControl, nodefault
};
__property bool ShowAccelChar = {read=FShowAccelChar, write=SetShowAccelChar, default=1};
__property bool Transparent = {read=GetTransparent, write=SetTransparent, default=0};
__property bool WordWrap = {read=FWordWrap, write=SetWordWrap, default=0};
public:
__fastcall virtual TCustomLabel(Classes::TComponent* AOwner);
__property Canvas ;
public:
/* TGraphicControl.Destroy */ __fastcall virtual ~TCustomLabel(void) { }
};
class __declspec(delphiclass) TLabel;
class __declspec(pascalimplementation) TLabel : public TCustomLabel
{
typedef TCustomLabel inherited;
__published:
__property Align ;
__property Alignment ;
__property AutoSize ;
__property Caption ;
__property Color ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property FocusControl ;
__property Font ;
__property ParentColor ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowAccelChar ;
__property ShowHint ;
__property Transparent ;
__property Visible ;
__property WordWrap ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TCustomLabel.Create */ __fastcall virtual TLabel(Classes::TComponent* AOwner) : Stdctrls::TCustomLabel(
AOwner) { }
public:
/* TGraphicControl.Destroy */ __fastcall virtual ~TLabel(void) { }
};
enum TEditCharCase { ecNormal, ecUpperCase, ecLowerCase };
class __declspec(delphiclass) TCustomEdit;
class __declspec(pascalimplementation) TCustomEdit : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
int FMaxLength;
TFormBorderStyle FBorderStyle;
char FPasswordChar;
bool FReadOnly;
bool FAutoSize;
bool FAutoSelect;
bool FHideSelection;
bool FOEMConvert;
TEditCharCase FCharCase;
bool FCreating;
bool FModified;
Classes::TNotifyEvent FOnChange;
void __fastcall AdjustHeight(void);
virtual void __fastcall DefaultHandler(void *Message);
bool __fastcall GetModified(void);
int __fastcall GetSelLength(void);
int __fastcall GetSelStart(void);
System::AnsiString __fastcall GetSelText(void);
void __fastcall SetAutoSize(bool Value);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall SetCharCase(TEditCharCase Value);
void __fastcall SetHideSelection(bool Value);
void __fastcall SetMaxLength(int Value);
void __fastcall SetModified(bool Value);
void __fastcall SetOEMConvert(bool Value);
void __fastcall SetPasswordChar(char Value);
void __fastcall SetReadOnly(bool Value);
void __fastcall SetSelLength(int Value);
void __fastcall SetSelStart(int Value);
void __fastcall SetSelText(const System::AnsiString Value);
void __fastcall UpdateHeight(void);
MESSAGE void __fastcall WMSetFont(Messages::TWMSetFont &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
protected:
virtual void __fastcall Change(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
__property bool AutoSelect = {read=FAutoSelect, write=FAutoSelect, default=1};
__property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=1};
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property TEditCharCase CharCase = {read=FCharCase, write=SetCharCase, default=0};
__property bool HideSelection = {read=FHideSelection, write=SetHideSelection, default=1};
__property int MaxLength = {read=FMaxLength, write=SetMaxLength, default=0};
__property bool OEMConvert = {read=FOEMConvert, write=SetOEMConvert, default=0};
__property char PasswordChar = {read=FPasswordChar, write=SetPasswordChar, default=0};
__property ParentColor ;
__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, default=0};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
public:
__fastcall virtual TCustomEdit(Classes::TComponent* AOwner);
void __fastcall Clear(void);
void __fastcall ClearSelection(void);
void __fastcall CopyToClipboard(void);
void __fastcall CutToClipboard(void);
void __fastcall PasteFromClipboard(void);
int __fastcall GetSelTextBuf(char * Buffer, int BufSize);
void __fastcall SelectAll(void);
void __fastcall SetSelTextBuf(char * Buffer);
__property bool Modified = {read=GetModified, write=SetModified, nodefault};
__property int SelLength = {read=GetSelLength, write=SetSelLength, nodefault};
__property int SelStart = {read=GetSelStart, write=SetSelStart, nodefault};
__property System::AnsiString SelText = {read=GetSelText, write=SetSelText, nodefault};
__property Text ;
__published:
__property TabStop ;
public:
/* TWinControl.CreateParented */ __fastcall TCustomEdit(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
/* TWinControl.Destroy */ __fastcall virtual ~TCustomEdit(void) { }
};
class __declspec(delphiclass) TEdit;
class __declspec(pascalimplementation) TEdit : public TCustomEdit
{
typedef TCustomEdit inherited;
__published:
__property AutoSelect ;
__property AutoSize ;
__property BorderStyle ;
__property CharCase ;
__property Color ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property HideSelection ;
__property ImeMode ;
__property ImeName ;
__property MaxLength ;
__property OEMConvert ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PasswordChar ;
__property PopupMenu ;
__property ReadOnly ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Text ;
__property Visible ;
__property OnChange ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TCustomEdit.Create */ __fastcall virtual TEdit(Classes::TComponent* AOwner) : Stdctrls::TCustomEdit(
AOwner) { }
public:
/* TWinControl.CreateParented */ __fastcall TEdit(HWND ParentWindow) : Stdctrls::TCustomEdit(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~TEdit(void) { }
};
enum TScrollStyle { ssNone, ssHorizontal, ssVertical, ssBoth };
class __declspec(delphiclass) TCustomMemo;
class __declspec(pascalimplementation) TCustomMemo : public TCustomEdit
{
typedef TCustomEdit inherited;
private:
Classes::TStrings* FLines;
TAlignment FAlignment;
TScrollStyle FScrollBars;
bool FWordWrap;
bool FWantReturns;
bool FWantTabs;
Byte FReserved;
int HEditDS;
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMNCDestroy(Messages::TWMNoParams &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWindowHandle(const Controls::TCreateParams &Params);
virtual void __fastcall KeyPress(char &Key);
virtual void __fastcall Loaded(void);
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetLines(Classes::TStrings* Value);
void __fastcall SetScrollBars(TScrollStyle Value);
void __fastcall SetWordWrap(bool Value);
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
__property TScrollStyle ScrollBars = {read=FScrollBars, write=SetScrollBars, default=0};
__property bool WantReturns = {read=FWantReturns, write=FWantReturns, default=1};
__property bool WantTabs = {read=FWantTabs, write=FWantTabs, default=0};
__property bool WordWrap = {read=FWordWrap, write=SetWordWrap, default=1};
public:
__fastcall virtual TCustomMemo(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomMemo(void);
__property Classes::TStrings* Lines = {read=FLines, write=SetLines, nodefault};
public:
/* TWinControl.CreateParented */ __fastcall TCustomMemo(HWND ParentWindow) : Stdctrls::TCustomEdit(
ParentWindow) { }
};
class __declspec(delphiclass) TMemo;
class __declspec(pascalimplementation) TMemo : public TCustomMemo
{
typedef TCustomMemo inherited;
private:
void __fastcall ReadStringData(Classes::TReader* Reader);
__published:
__property Align ;
__property Alignment ;
__property BorderStyle ;
__property Color ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property HideSelection ;
__property ImeMode ;
__property ImeName ;
__property Lines ;
__property MaxLength ;
__property OEMConvert ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ReadOnly ;
__property ScrollBars ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property WantReturns ;
__property WantTabs ;
__property WordWrap ;
__property OnChange ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TCustomMemo.Create */ __fastcall virtual TMemo(Classes::TComponent* AOwner) : Stdctrls::TCustomMemo(
AOwner) { }
/* TCustomMemo.Destroy */ __fastcall virtual ~TMemo(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TMemo(HWND ParentWindow) : Stdctrls::TCustomMemo(ParentWindow
) { }
};
enum TComboBoxStyle { csDropDown, csSimple, csDropDownList, csOwnerDrawFixed, csOwnerDrawVariable };
enum StdCtrls_9 { odSelected, odGrayed, odDisabled, odChecked, odFocused };
typedef Set<StdCtrls_9, odSelected, odFocused> TOwnerDrawState;
typedef void __fastcall (__closure *TDrawItemEvent)(Controls::TWinControl* Control, int Index, const
Windows::TRect &Rect, TOwnerDrawState State);
typedef void __fastcall (__closure *TMeasureItemEvent)(Controls::TWinControl* Control, int Index, int
&Height);
class __declspec(delphiclass) TCustomComboBox;
class __declspec(pascalimplementation) TCustomComboBox : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
Classes::TStrings* FItems;
Graphics::TCanvas* FCanvas;
bool FSorted;
TComboBoxStyle FStyle;
int FItemHeight;
int FMaxLength;
int FDropDownCount;
HWND FEditHandle;
HWND FListHandle;
void *FEditInstance;
void *FListInstance;
void *FDefEditProc;
void *FDefListProc;
bool FIsFocused;
bool FFocusChanged;
Classes::TStringList* FSaveItems;
Classes::TNotifyEvent FOnChange;
Classes::TNotifyEvent FOnDropDown;
TDrawItemEvent FOnDrawItem;
TMeasureItemEvent FOnMeasureItem;
void __fastcall AdjustDropDown(void);
void __fastcall EditWndProc(Messages::TMessage &Message);
bool __fastcall GetDroppedDown(void);
int __fastcall GetItemIndex(void);
int __fastcall GetSelLength(void);
int __fastcall GetSelStart(void);
System::AnsiString __fastcall GetSelText(void);
void __fastcall ListWndProc(Messages::TMessage &Message);
void __fastcall SetDroppedDown(bool Value);
void __fastcall SetItems(Classes::TStrings* Value);
void __fastcall SetItemIndex(int Value);
void __fastcall SetSelLength(int Value);
void __fastcall SetSelStart(int Value);
void __fastcall SetSelText(const System::AnsiString Value);
void __fastcall SetSorted(bool Value);
int __fastcall GetItemHeight(void);
void __fastcall SetItemHeight(int Value);
void __fastcall SetMaxLength(int Value);
MESSAGE void __fastcall WMCreate(Messages::TWMCreate &Message);
HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
MESSAGE void __fastcall CMCancelMode(Controls::TCMCancelMode &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMParentColorChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
MESSAGE void __fastcall CNMeasureItem(Messages::TWMMeasureItem &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMDrawItem(Messages::TWMDrawItem &Message);
HIDESBASE MESSAGE void __fastcall WMMeasureItem(Messages::TWMMeasureItem &Message);
HIDESBASE MESSAGE void __fastcall WMDeleteItem(Messages::TWMDeleteItem &Message);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
protected:
virtual void __fastcall ComboWndProc(Messages::TMessage &Message, HWND ComboWnd, void * ComboProc);
virtual void __fastcall WndProc(Messages::TMessage &Message);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, TOwnerDrawState State);
virtual void __fastcall MeasureItem(int Index, int &Height);
virtual void __fastcall Change(void);
virtual void __fastcall DropDown(void);
virtual void __fastcall SetStyle(TComboBoxStyle Value);
__property int DropDownCount = {read=FDropDownCount, write=FDropDownCount, default=8};
__property HWND EditHandle = {read=FEditHandle, nodefault};
__property int ItemHeight = {read=GetItemHeight, write=SetItemHeight, nodefault};
__property HWND ListHandle = {read=FListHandle, nodefault};
__property int MaxLength = {read=FMaxLength, write=SetMaxLength, default=0};
__property ParentColor ;
__property bool Sorted = {read=FSorted, write=SetSorted, default=0};
__property TComboBoxStyle Style = {read=FStyle, write=SetStyle, default=0};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};
__property TDrawItemEvent OnDrawItem = {read=FOnDrawItem, write=FOnDrawItem};
__property TMeasureItemEvent OnMeasureItem = {read=FOnMeasureItem, write=FOnMeasureItem};
public:
__fastcall virtual TCustomComboBox(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomComboBox(void);
void __fastcall Clear(void);
void __fastcall SelectAll(void);
__property Graphics::TCanvas* Canvas = {read=FCanvas, nodefault};
__property bool DroppedDown = {read=GetDroppedDown, write=SetDroppedDown, nodefault};
__property Classes::TStrings* Items = {read=FItems, write=SetItems, nodefault};
__property int ItemIndex = {read=GetItemIndex, write=SetItemIndex, nodefault};
__property int SelLength = {read=GetSelLength, write=SetSelLength, nodefault};
__property int SelStart = {read=GetSelStart, write=SetSelStart, nodefault};
__property System::AnsiString SelText = {read=GetSelText, write=SetSelText, nodefault};
__published:
__property TabStop ;
public:
/* TWinControl.CreateParented */ __fastcall TCustomComboBox(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
};
class __declspec(delphiclass) TComboBox;
class __declspec(pascalimplementation) TComboBox : public TCustomComboBox
{
typedef TCustomComboBox inherited;
__published:
__property Style ;
__property Color ;
__property Ctl3D ;
__property DragMode ;
__property DragCursor ;
__property DropDownCount ;
__property Enabled ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property ItemHeight ;
__property Items ;
__property MaxLength ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Sorted ;
__property TabOrder ;
__property TabStop ;
__property Text ;
__property Visible ;
__property OnChange ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnDrawItem ;
__property OnDropDown ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMeasureItem ;
__property OnStartDrag ;
public:
/* TCustomComboBox.Create */ __fastcall virtual TComboBox(Classes::TComponent* AOwner) : Stdctrls::
TCustomComboBox(AOwner) { }
/* TCustomComboBox.Destroy */ __fastcall virtual ~TComboBox(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TComboBox(HWND ParentWindow) : Stdctrls::TCustomComboBox(
ParentWindow) { }
};
class __declspec(delphiclass) TButtonControl;
class __declspec(pascalimplementation) TButtonControl : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
bool FClicksDisabled;
Byte FReserved;
protected:
virtual void __fastcall WndProc(Messages::TMessage &Message);
public:
/* TWinControl.Create */ __fastcall virtual TButtonControl(Classes::TComponent* AOwner) : Controls::
TWinControl(AOwner) { }
/* TWinControl.CreateParented */ __fastcall TButtonControl(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
/* TWinControl.Destroy */ __fastcall virtual ~TButtonControl(void) { }
};
class __declspec(delphiclass) TButton;
class __declspec(pascalimplementation) TButton : public TButtonControl
{
typedef TButtonControl inherited;
private:
bool FDefault;
bool FCancel;
bool FActive;
Byte FReserved;
Forms::TModalResult FModalResult;
void __fastcall SetDefault(bool Value);
HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMFocusChanged(Controls::TCMFocusChanged &Message);
MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall SetButtonStyle(bool ADefault);
public:
__fastcall virtual TButton(Classes::TComponent* AOwner);
virtual void __fastcall Click(void);
__published:
__property bool Cancel = {read=FCancel, write=FCancel, default=0};
__property Caption ;
__property bool Default = {read=FDefault, write=SetDefault, default=0};
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property Forms::TModalResult ModalResult = {read=FModalResult, write=FModalResult, default=0};
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TButton(HWND ParentWindow) : Stdctrls::TButtonControl(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~TButton(void) { }
};
enum TCheckBoxState { cbUnchecked, cbChecked, cbGrayed };
class __declspec(delphiclass) TCustomCheckBox;
class __declspec(pascalimplementation) TCustomCheckBox : public TButtonControl
{
typedef TButtonControl inherited;
private:
TAlignment FAlignment;
bool FAllowGrayed;
TCheckBoxState FState;
bool __fastcall GetChecked(void);
void __fastcall SetAlignment(Classes::TLeftRight Value);
void __fastcall SetChecked(bool Value);
void __fastcall SetState(TCheckBoxState Value);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
protected:
virtual void __fastcall Toggle(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWindowHandle(const Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
__property Classes::TLeftRight Alignment = {read=FAlignment, write=SetAlignment, default=1};
__property bool AllowGrayed = {read=FAllowGrayed, write=FAllowGrayed, default=0};
__property bool Checked = {read=GetChecked, write=SetChecked, stored=false, nodefault};
__property TCheckBoxState State = {read=FState, write=SetState, default=0};
public:
__fastcall virtual TCustomCheckBox(Classes::TComponent* AOwner);
__published:
__property TabStop ;
public:
/* TWinControl.CreateParented */ __fastcall TCustomCheckBox(HWND ParentWindow) : Stdctrls::TButtonControl(
ParentWindow) { }
/* TWinControl.Destroy */ __fastcall virtual ~TCustomCheckBox(void) { }
};
class __declspec(delphiclass) TCheckBox;
class __declspec(pascalimplementation) TCheckBox : public TCustomCheckBox
{
typedef TCustomCheckBox inherited;
__published:
__property Alignment ;
__property AllowGrayed ;
__property Caption ;
__property Checked ;
__property Color ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property State ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TCustomCheckBox.Create */ __fastcall virtual TCheckBox(Classes::TComponent* AOwner) : Stdctrls::
TCustomCheckBox(AOwner) { }
public:
/* TWinControl.CreateParented */ __fastcall TCheckBox(HWND ParentWindow) : Stdctrls::TCustomCheckBox(
ParentWindow) { }
/* TWinControl.Destroy */ __fastcall virtual ~TCheckBox(void) { }
};
class __declspec(delphiclass) TRadioButton;
class __declspec(pascalimplementation) TRadioButton : public TButtonControl
{
typedef TButtonControl inherited;
private:
TAlignment FAlignment;
bool FChecked;
void __fastcall SetAlignment(Classes::TLeftRight Value);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
protected:
void __fastcall SetChecked(bool Value);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWindowHandle(const Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
public:
__fastcall virtual TRadioButton(Classes::TComponent* AOwner);
__published:
__property Classes::TLeftRight Alignment = {read=FAlignment, write=SetAlignment, default=1};
__property Caption ;
__property bool Checked = {read=FChecked, write=SetChecked, default=0};
__property Color ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__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 OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TRadioButton(HWND ParentWindow) : Stdctrls::TButtonControl(
ParentWindow) { }
/* TWinControl.Destroy */ __fastcall virtual ~TRadioButton(void) { }
};
enum TListBoxStyle { lbStandard, lbOwnerDrawFixed, lbOwnerDrawVariable };
class __declspec(delphiclass) TCustomListBox;
class __declspec(pascalimplementation) TCustomListBox : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
Classes::TStrings* FItems;
TFormBorderStyle FBorderStyle;
Graphics::TCanvas* FCanvas;
int FColumns;
int FItemHeight;
TListBoxStyle FStyle;
bool FIntegralHeight;
bool FMultiSelect;
bool FSorted;
bool FExtendedSelect;
int FTabWidth;
Classes::TStringList* FSaveItems;
int FSaveTopIndex;
int FSaveItemIndex;
TDrawItemEvent FOnDrawItem;
TMeasureItemEvent FOnMeasureItem;
int __fastcall GetItemHeight(void);
int __fastcall GetItemIndex(void);
int __fastcall GetSelCount(void);
bool __fastcall GetSelected(int Index);
int __fastcall GetTopIndex(void);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall SetColumnWidth(void);
void __fastcall SetColumns(int Value);
void __fastcall SetExtendedSelect(bool Value);
void __fastcall SetIntegralHeight(bool Value);
void __fastcall SetItemHeight(int Value);
void __fastcall SetItems(Classes::TStrings* Value);
void __fastcall SetItemIndex(int Value);
void __fastcall SetMultiSelect(bool Value);
void __fastcall SetSelected(int Index, bool Value);
void __fastcall SetSorted(bool Value);
void __fastcall SetStyle(TListBoxStyle Value);
void __fastcall SetTabWidth(int Value);
void __fastcall SetTopIndex(int Value);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
MESSAGE void __fastcall CNMeasureItem(Messages::TWMMeasureItem &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
virtual void __fastcall WndProc(Messages::TMessage &Message);
virtual void __fastcall DragCanceled(void);
virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, TOwnerDrawState State);
virtual void __fastcall MeasureItem(int Index, int &Height);
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property int Columns = {read=FColumns, write=SetColumns, default=0};
__property bool ExtendedSelect = {read=FExtendedSelect, write=SetExtendedSelect, default=1};
__property bool IntegralHeight = {read=FIntegralHeight, write=SetIntegralHeight, default=0};
__property int ItemHeight = {read=GetItemHeight, write=SetItemHeight, nodefault};
__property bool MultiSelect = {read=FMultiSelect, write=SetMultiSelect, default=0};
__property ParentColor ;
__property bool Sorted = {read=FSorted, write=SetSorted, default=0};
__property TListBoxStyle Style = {read=FStyle, write=SetStyle, default=0};
__property int TabWidth = {read=FTabWidth, write=SetTabWidth, default=0};
__property TDrawItemEvent OnDrawItem = {read=FOnDrawItem, write=FOnDrawItem};
__property TMeasureItemEvent OnMeasureItem = {read=FOnMeasureItem, write=FOnMeasureItem};
public:
__fastcall virtual TCustomListBox(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomListBox(void);
void __fastcall Clear(void);
int __fastcall ItemAtPos(const POINT &Pos, bool Existing);
Windows::TRect __fastcall ItemRect(int Index);
__property Graphics::TCanvas* Canvas = {read=FCanvas, nodefault};
__property Classes::TStrings* Items = {read=FItems, write=SetItems, nodefault};
__property int ItemIndex = {read=GetItemIndex, write=SetItemIndex, nodefault};
__property int SelCount = {read=GetSelCount, nodefault};
__property bool Selected[int Index] = {read=GetSelected, write=SetSelected};
__property int TopIndex = {read=GetTopIndex, write=SetTopIndex, nodefault};
__published:
__property TabStop ;
public:
/* TWinControl.CreateParented */ __fastcall TCustomListBox(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
};
class __declspec(delphiclass) TListBox;
class __declspec(pascalimplementation) TListBox : public TCustomListBox
{
typedef TCustomListBox inherited;
__published:
__property Align ;
__property BorderStyle ;
__property Color ;
__property Columns ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property ExtendedSelect ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property IntegralHeight ;
__property ItemHeight ;
__property Items ;
__property MultiSelect ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Sorted ;
__property Style ;
__property TabOrder ;
__property TabStop ;
__property TabWidth ;
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnDrawItem ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMeasureItem ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TCustomListBox.Create */ __fastcall virtual TListBox(Classes::TComponent* AOwner) : Stdctrls::TCustomListBox(
AOwner) { }
/* TCustomListBox.Destroy */ __fastcall virtual ~TListBox(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TListBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
ParentWindow) { }
};
enum TScrollCode { scLineUp, scLineDown, scPageUp, scPageDown, scPosition, scTrack, scTop, scBottom,
scEndScroll };
typedef void __fastcall (__closure *TScrollEvent)(System::TObject* Sender, TScrollCode ScrollCode, int
&ScrollPos);
class __declspec(delphiclass) TScrollBar;
class __declspec(pascalimplementation) TScrollBar : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TScrollBarKind FKind;
Byte FReserved;
int FPosition;
int FMin;
int FMax;
Forms::TScrollBarInc FSmallChange;
Forms::TScrollBarInc FLargeChange;
Classes::TNotifyEvent FOnChange;
TScrollEvent FOnScroll;
void __fastcall DoScroll(Messages::TWMScroll &Message);
void __fastcall SetKind(Forms::TScrollBarKind Value);
void __fastcall SetMax(int Value);
void __fastcall SetMin(int Value);
void __fastcall SetPosition(int Value);
MESSAGE void __fastcall CNHScroll(Messages::TWMScroll &Message);
MESSAGE void __fastcall CNVScroll(Messages::TWMScroll &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall Change(void);
virtual void __fastcall Scroll(TScrollCode ScrollCode, int &ScrollPos);
public:
__fastcall virtual TScrollBar(Classes::TComponent* AOwner);
void __fastcall SetParams(int APosition, int AMin, int AMax);
__published:
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Forms::TScrollBarKind Kind = {read=FKind, write=SetKind, default=0};
__property Forms::TScrollBarInc LargeChange = {read=FLargeChange, write=FLargeChange, default=1};
__property int Max = {read=FMax, write=SetMax, default=100};
__property int Min = {read=FMin, write=SetMin, default=0};
__property ParentCtl3D ;
__property ParentShowHint ;
__property PopupMenu ;
__property int Position = {read=FPosition, write=SetPosition, default=0};
__property ShowHint ;
__property Forms::TScrollBarInc SmallChange = {read=FSmallChange, write=FSmallChange, default=1};
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property TScrollEvent OnScroll = {read=FOnScroll, write=FOnScroll};
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TScrollBar(HWND ParentWindow) : Controls::TWinControl(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~TScrollBar(void) { }
};
//-- var, const, procedure ---------------------------------------------------
//-- template instantiations -------------------------------------------------
template class TOwnerDrawState ;
} /* namespace Stdctrls */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Stdctrls;
#endif
//-- end unit ----------------------------------------------------------------
#endif // StdCtrls