?? mxoutlookbarpro.~hpp
字號:
void __fastcall SetShowAccelChar(bool AValue);
virtual void __fastcall SetParentBiDiMode(bool AValue);
void __fastcall SetButtonKind(TmxButtonKind AValue);
void __fastcall SetMargin(int AValue);
void __fastcall SetCheckState(Stdctrls::TCheckBoxState AValue);
void __fastcall SetChecked(bool AValue);
Imglist::TCustomImageList* __fastcall GetButtonImageList(void);
TmxBarSettings* __fastcall GetSettings(void);
TmxButtonStyle __fastcall GetStyle(void);
TmxButtonView __fastcall GetView(void);
void __fastcall CalculateButtonRect(Types::TRect &ButtonRect, Types::TRect &ImageRect, Types::TRect &FocusRect, Types::TRect &LabelRect);
Types::TRect __fastcall CalculateImagePositon(const Types::TRect &ButtonRect);
Types::TRect __fastcall CalculateSmallImagePositon(const Types::TRect &ButtonRect);
Graphics::TFont* __fastcall GetFont(bool FocusEnabled);
bool __fastcall IsBiDiModeStored(void);
virtual void __fastcall DoClick(void);
int __fastcall GetHeaderIndex(void);
TmxHeader* __fastcall GetHeader(void);
bool __fastcall IsTheFirstButton(void);
bool __fastcall IsTheLastButton(void);
protected:
__property Controls::TControlActionLink* ActionLink = {read=FActionLink, write=FActionLink};
virtual AnsiString __fastcall GetDisplayName();
virtual void __fastcall SetDisplayName(const AnsiString AValue);
virtual void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);
virtual TMetaClass* __fastcall GetActionLinkClass(void);
virtual void __fastcall DrawCaption(Graphics::TCanvas* ACanvas, bool Pushed, bool Underline);
virtual void __fastcall DrawCheckStyle(Graphics::TCanvas* ACanvas);
virtual void __fastcall DrawFocusRect(Graphics::TCanvas* ACanvas, Types::TRect &ARect, TmxButtonState AButtonState);
virtual void __fastcall DrawXPFocusRect(Graphics::TCanvas* ACanvas, Types::TRect &ARect, TmxButtonState AButtonState);
virtual void __fastcall DrawImageRect(Graphics::TCanvas* ACanvas, Types::TRect &ARect, bool Pushed);
virtual void __fastcall DrawXPImageRect(Graphics::TCanvas* ACanvas, Types::TRect &ARect, bool Pushed);
virtual void __fastcall Draw(Graphics::TBitmap* DrawBitmap, Types::TRect &ARect, int MaxBottom, bool Calcsize);
virtual void __fastcall DoBeforeDrawButton(Graphics::TCanvas* ACanvas, Types::TRect &AButtonRect, Types::TRect &AFocusRect, Types::TRect &AImageRect, Types::TRect &ALabelRect);
virtual void __fastcall DoDrawButton(Graphics::TCanvas* ACanvas, TmxButtonView AView, TmxButtonState AState, const Types::TRect &AImageRect, const Types::TRect &ALabelRect);
virtual void __fastcall DoAfterDrawButton(Graphics::TCanvas* ACanvas, const Types::TRect &AImageRect, const Types::TRect &ALabelRect);
public:
__property TmxHitPosition HitStatus = {read=FDragDropHitStatus, nodefault};
__property bool IsFirstButton = {read=IsTheFirstButton, nodefault};
__property bool IsLastButton = {read=IsTheLastButton, nodefault};
__property int HeaderIndex = {read=GetHeaderIndex, nodefault};
__property Types::TRect ButtonRect = {read=FButtonRect};
__property Types::TRect LabelRect = {read=FLabelRect};
__property void * Data = {read=FData, write=SetData};
bool __fastcall UseRightToLeftReading(void);
int __fastcall DrawTextBiDiModeFlags(int Flags);
bool __fastcall UseRightToLeftAlignment(void);
int __fastcall DrawTextBiDiModeFlagsReadingOnly(void);
__fastcall virtual TmxButton(Classes::TCollection* ACollection);
__fastcall virtual ~TmxButton(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
virtual void __fastcall AssignTo(Classes::TPersistent* Destination);
void __fastcall Alert(void);
void __fastcall StopAlert(void);
__published:
__property Classes::TBasicAction* Action = {read=GetAction, write=SetAction};
__property bool AutoSize = {read=FAutoSize, write=SetAutoSize, nodefault};
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=2};
__property bool AllowGrayed = {read=FAllowGrayed, write=FAllowGrayed, nodefault};
__property int ButtonIndex = {read=GetButtonIndex, write=SetButtonIndex, nodefault};
__property TmxButtonKind ButtonKind = {read=FButtonKind, write=SetButtonKind, default=0};
__property TmxButtonStyle ButtonStyle = {read=FButtonStyle, write=SetButtonStyle, nodefault};
__property TmxButtonView ButtonView = {read=FButtonView, write=SetButtonView, nodefault};
__property Classes::TBiDiMode BiDiMode = {read=FBiDiMode, write=SetBiDiMode, stored=IsBiDiModeStored, nodefault};
__property bool Checked = {read=FChecked, write=SetChecked, nodefault};
__property AnsiString Caption = {read=FCaption, write=SetCaption};
__property Graphics::TColor Color = {read=FColor, write=SetColor, nodefault};
__property Controls::TCursor Cursor = {read=FCursor, write=FCursor, default=0};
__property Stdctrls::TCheckBoxState CheckState = {read=FCheckState, write=SetCheckState, nodefault};
__property bool Enabled = {read=FEnabled, write=SetEnabled, nodefault};
__property Graphics::TFont* Font = {read=FFont, write=SetFont};
__property Graphics::TFont* HighlightFont = {read=FHighlightFont, write=SetHighlightFont};
__property Classes::THelpContext HelpContext = {read=FHelpContext, write=SetHelpContext, nodefault};
__property Word Height = {read=FHeight, write=SetHeight, default=20};
__property AnsiString Hint = {read=FHint, write=SetHint};
__property Imglist::TImageIndex ImageIndex = {read=FImageIndex, write=SetImageIndex, nodefault};
__property int Margin = {read=FMargin, write=SetMargin, default=4};
__property AnsiString Name = {read=GetDisplayName, write=SetDisplayName};
__property Menus::TPopupMenu* PopupMenu = {read=FPopupMenu, write=FPopupMenu};
__property bool ShowAccelChar = {read=FShowAccelChar, write=SetShowAccelChar, default=1};
__property bool ParentBiDiMode = {read=FParentBiDiMode, write=SetParentBiDiMode, default=1};
__property int Tag = {read=FTag, write=FTag, default=0};
__property bool Transparent = {read=FTransparent, write=SetTransparent, nodefault};
__property TmxButtonOptions Options = {read=FOptions, write=SetOptions, nodefault};
__property AnsiString UserString = {read=FUserString, write=FUserString};
__property bool Visible = {read=FVisible, write=SetVisible, nodefault};
__property Word Width = {read=FWidth, write=SetWidth, default=20};
__property bool WordWrap = {read=FWordWrap, write=SetWordWrap, default=0};
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
__property TmxEventBeforeDrawCommandButton OnBeforeDrawButton = {read=FOnBeforeDrawButton, write=FOnBeforeDrawButton};
__property TmxEventDrawCommandButton OnDrawButton = {read=FOnDrawButton, write=FOnDrawButton};
__property TmxEventAfterDrawCommandButton OnAfterDrawButton = {read=FOnAfterDrawButton, write=FOnAfterDrawButton};
};
class DELPHICLASS TmxDragDropManager;
class DELPHICLASS TmxFormatEtcList;
typedef DynamicArray<tagFORMATETC > TmxFormatEtcArray;
class PASCALIMPLEMENTATION TmxFormatEtcList : public System::TObject
{
typedef System::TObject inherited;
private:
DynamicArray<tagFORMATETC > FList;
tagFORMATETC __fastcall Get(int Index);
void __fastcall Put(int Index, const tagFORMATETC &Item);
int __fastcall GetCount(void);
public:
int __fastcall Add(const tagFORMATETC &Item);
void __fastcall Clear(void);
void __fastcall Delete(int Index);
TmxFormatEtcList* __fastcall Clone(void);
__property int Count = {read=GetCount, nodefault};
__property tagFORMATETC Items[int Index] = {read=Get, write=Put};
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TmxFormatEtcList(void) : System::TObject() { }
#pragma option pop
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~TmxFormatEtcList(void) { }
#pragma option pop
};
class PASCALIMPLEMENTATION TmxDragDropManager : public System::TInterfacedObject
{
typedef System::TInterfacedObject inherited;
private:
TmxFormatEtcList* FFormatEtcList;
TmxOutlookBarPro* FOwner;
TmxOutlookBarPro* FDragSource;
public:
__fastcall virtual TmxDragDropManager(TmxOutlookBarPro* AOwner);
__fastcall virtual ~TmxDragDropManager(void);
HIDESBASE int __stdcall _Release(void);
HRESULT __stdcall DAdvise(const tagFORMATETC &FormatEtc, int advf, const _di_IAdviseSink advSink, /* out */ int &dwConnection);
HRESULT __stdcall DUnadvise(int dwConnection);
HRESULT __stdcall EnumDAdvise(/* out */ _di_IEnumSTATDATA &enumAdvise);
HRESULT __stdcall EnumFormatEtc(int Direction, /* out */ _di_IEnumFORMATETC &EnumFormatEtc);
HRESULT __stdcall GetCanonicalFormatEtc(const tagFORMATETC &FormatEtc, /* out */ tagFORMATETC &FormatEtcOut);
HRESULT __stdcall GetData(const tagFORMATETC &FormatEtcIn, /* out */ tagSTGMEDIUM &Medium);
HRESULT __stdcall GetDataHere(const tagFORMATETC &FormatEtc, /* out */ tagSTGMEDIUM &Medium);
HRESULT __stdcall QueryGetData(const tagFORMATETC &FormatEtc);
virtual HRESULT __fastcall RenderData(const tagFORMATETC &FormatEtc, tagSTGMEDIUM &StgMedium);
HRESULT __stdcall SetData(const tagFORMATETC &FormatEtc, tagSTGMEDIUM &Medium, BOOL DoRelease);
HRESULT __stdcall GiveFeedback(int Effect);
HRESULT __stdcall QueryContinueDrag(BOOL EscapePressed, int KeyState);
HRESULT __stdcall DragEnter(const _di_IDataObject DataObject, int KeyState, const Types::TPoint Pt, int &Effect);
HRESULT __stdcall DragOver(int KeyState, const Types::TPoint Pt, int &Effect);
HRESULT __stdcall DragLeave(void);
HRESULT __stdcall Drop(const _di_IDataObject DataObject, int KeyState, const Types::TPoint Pt, int &Effect);
__property TmxOutlookBarPro* DragSource = {read=FDragSource};
TmxOutlookBarPro* __fastcall GetDataSourceTree(_di_IDataObject DataObject);
void __fastcall SetOLEFormats(void);
private:
void *__IDataObject; /* IDataObject */
void *__IDropSource; /* IDropSource */
void *__IDropTarget; /* IDropTarget */
public:
// operator IDropTarget*(void) { return (IDropTarget*)&__IDropTarget; } //注意需要屏蔽
// operator IDropSource*(void) { return (IDropSource*)&__IDropSource; }
// operator IDataObject*(void) { return (IDataObject*)&__IDataObject; }
};
typedef void __fastcall (__closure *TmxEventDragAllowed)(TmxOutlookBarPro* Sender, TmxButton* Button, bool &Allowed);
typedef void __fastcall (__closure *TmxEventDragOver)(TmxOutlookBarPro* Sender, System::TObject* Source, Classes::TShiftState Shift, Controls::TDragState State, const Types::TPoint &Pt, TmxDropMode Mode, int &Effect, bool &Accept);
typedef void __fastcall (__closure *TmxEventDragEnter)(TmxOutlookBarPro* Sender, _di_IDataObject DataObject, System::TObject* Source, Classes::TShiftState Shift, Controls::TDragState State, const Types::TPoint &Pt, TmxDropMode Mode, int &Effect, bool &Accept);
typedef void __fastcall (__closure *TmxEventDragDrop)(TmxOutlookBarPro* Sender, System::TObject* Source, _di_IDataObject DataObject, const Word * Formats, const int Formats_Size, Classes::TShiftState Shift, const Types::TPoint &Pt, int &Effect, TmxDropMode Mode);
class DELPHICLASS TmxBackground;
class DELPHICLASS TmxCustomBackground;
class DELPHICLASS TmxGradient;
class PASCALIMPLEMENTATION TmxGradient : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
#pragma pack(push, 1)
Types::TRect FOldRect;
#pragma pack(pop)
TmxGradientDirection FDirection;
Graphics::TColor FBeginColor;
Graphics::TColor FEndColor;
TmxGradientStyle FGradientStyle;
int FColorTable[256];
Graphics::TBitmap* FBitmap;
Classes::TNotifyEvent FOnChangeParameter;
void __fastcall SetColor(int Index, Graphics::TColor AValue);
void __fastcall SetGradientStyle(TmxGradientStyle AValue);
void __fastcall SetDirection(TmxGradientDirection AValue);
void __fastcall InternalDrawGradient(Graphics::TCanvas* ACanvas, int X, int Y, int Width, int Height);
protected:
void __fastcall LoadColors(void);
DYNAMIC void __fastcall Change(void);
public:
__property Graphics::TBitmap* GradientBitmap = {read=FBitmap};
__fastcall virtual TmxGradient(void);
__fastcall virtual ~TmxGradient(void);
virtual void __fastcall DrawGradient(Graphics::TCanvas* ACanvas, const Types::TRect &ARect);
virtual void __fastcall Assign(Classes::TPersistent* Source);
virtual void __fastcall AssignTo(Classes::TPersistent* Destination);
__published:
__property Graphics::TColor BeginColor = {read=FBeginColor, write=SetColor, index=1, default=0};
__property TmxGradientStyle DrawStyle = {read=FGradientStyle, write=SetGradientStyle, default=10};
__property TmxGradientDirection Direction = {read=FDirection, write=SetDirection, default=0};
__property Graphics::TColor EndColor = {read=FEndColor, write=SetColor, index=2, default=16711680};
__property Classes::TNotifyEvent OnChangeParameter = {read=FOnChangeParameter, write=FOnChangeParameter};
};
class PASCALIMPLEMENTATION TmxCustomBackground : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
Graphics::TBitmap* FBackgroundBitmap;
Byte FAlphaBlend;
TmxBitmapCopy FBitmapCopy;
TmxBackgroundStyle FBackgroundStyle;
Graphics::TColor FColor;
bool FDrawing;
TmxGradient* FGradient;
bool FGrayscale;
Classes::TNotifyEvent FOnChangeParameter;
void __fastcall SetBackgroundBitmap(Graphics::TBitmap* AValue);
void __fastcall SetBitmapCopy(TmxBitmapCopy AValue);
void __fastcall SetAlphaBlend(Byte AValue);
void __fastcall SetBackgroundStyle(TmxBackgroundStyle AValue);
void __fastcall SetColor(Graphics::TColor AValue);
void __fastcall SetGrayscale(bool AValue);
void __fastcall SetOnChangeParameter(Classes::TNotifyEvent AValue);
protected:
virtual void __fastcall DrawSolidBackground(Graphics::TCanvas* ACanvas, const Types::TRect &ARect);
virtual void __fastcall DrawBitmapBackground(Graphics::TCanvas* ACanvas, const Types::TRect &ARect, bool Tiled);
virtual void __fastcall AlphaBlendBackground(Graphics::TBitmap* DrawBitmap, const Types::TRect &ARect);
virtual void __fastcall ConvertToGrayScale(Graphics::TBitmap* DrawBitmap, const Types::TRect &ARect);
DYNAMIC void __fastcall Change(void);
__property Byte AlphaBlend = {read=FAlphaBlend, write=SetAlphaBlend, default=0};
__property Graphics::TBitmap* Bitmap = {read=FBackgroundBitmap, write=SetBackgroundBitmap};
__property TmxBitmapCopy BitmapCopy = {read=FBitmapCopy, write=SetBitmapCopy, default=2};
__property Graphics::TColor Color = {read=FColor, write=SetColor, default=-2147483633};
__property TmxGradient* Gradient = {read=FGradient, write=FGradient};
__property bool Grayscale = {read=FGrayscale, write=SetGrayscale, default=0};
__property TmxBackgroundStyle Style = {read=FBackgroundStyle, write=SetBackgroundStyle, default=2};
public:
__fastcall virtual TmxCustomBackground(void);
__fastcall virtual ~TmxCustomBackground(void);
virtual void __fastcall DrawBackground(Graphics::TBitmap* DrawBitmap, const Types::TRect &ARect);
virtual void __fastcall Assign(Classes::TPersistent* Source);
virtual void __fastcall AssignTo(Classes::TPersistent* Destination);
__property Classes::TNotifyEvent OnChangeParameter = {read=FOnChangeParameter, write=SetOnChangeParameter};
};
class PASCALIMPLEMENTATION TmxBackground : public TmxCustomBackground
{
typedef TmxCustomBackground inherited;
__published:
__property AlphaBlend = {default=0};
__property Bitmap ;
__property BitmapCopy = {default=2};
__property Color = {default=-2147483633};
__property Gradient ;
__property Grayscale = {default=0};
__property Style = {default=2};
__property OnChangeParameter ;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -