⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mxoutlookbarpro.~hpp

📁 可以在C++中实现OutLook界面和windows资源管理器的效果。
💻 ~HPP
📖 第 1 页 / 共 5 页
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'mxOutlookBarPro.pas' rev: 5.00

#ifndef mxOutlookBarProHPP
#define mxOutlookBarProHPP
#define   NO_WIN32_LEAN_AND_MEAN     /////////这行! 
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx


#include <Consts.hpp>	// Pascal unit
#include <ActiveX.hpp>	// Pascal unit
#include <ImgList.hpp>	// Pascal unit
#include <ActnList.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Commctrl.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Mxoutlookbarpro
{
//-- type declarations -------------------------------------------------------
struct TStreamDataHeader
{
	int DataType;
	int DataSize;
} ;

#pragma pack(push, 1)
struct TBaseStreamDataBody
{
	int HeaderIndex;
	int ButtonIndex;
} ;
#pragma pack(pop)

#pragma pack(push, 1)
struct TBaseStreamData
{
	TStreamDataHeader Header;
	TBaseStreamDataBody Body;
} ;
#pragma pack(pop)

typedef Exception mxNavigatorException;
;

#pragma option push -b-
enum TmxHeaderScrollType { stNone, stLinear, stAccelerated };
#pragma option pop

#pragma option push -b-
enum TmxBitmapCopy { bcMergeCopy, bcMergePaint, bcSrcCopy, bcSrcErase, bcSrcPaint };
#pragma option pop

#pragma option push -b-
enum TmxBackgroundStyle { btBitmap, btGradient, btSolid, btTileBitmap, btTransparent };
#pragma option pop

#pragma option push -b-
enum TmxGradientDirection { gdNormal, gdInverse };
#pragma option pop

#pragma option push -b-
enum TmxGradientStyle { gtCornerTopLeft, gtCornerTopRight, gtCornerBottomRight, gtCornerBottomLeft, 
	gtDiagonalRising, gtDiagonalFalling, gtEllipse, gtPyramid, gtVerticalToCenter, gtHorizontalToCenter, 
	gtLeftToRight, gtTopToBottom };
#pragma option pop

#pragma option push -b-
enum TmxVerticalAlignment { vaTopJustify, vaCenter, vaBottomJustify };
#pragma option pop

#pragma option push -b-
enum TmxViewStyle { vsExplorerBar, vsOutlook };
#pragma option pop

#pragma option push -b-
enum TmxButtonStyle { bsLarge, bsSmall };
#pragma option pop

#pragma option push -b-
enum TmxButtonView { bvBig, bvExplorer, bvNormal, bvToolBox, bvWindows2000, bvWindowsXP };
#pragma option pop

#pragma option push -b-
enum TmxButtonState { hbsUp, hbsDown, hbsFocused, hbsDisabled };
#pragma option pop

#pragma option push -b-
enum TmxButtonKind { bkButton, bkLabel, bkCheckBox, bkPushButton, bkRadioButton };
#pragma option pop

#pragma option push -b-
enum TmxGlyphLayout { glGlyphLeft, glGlyphRight, glGlyphCenter };
#pragma option pop

#pragma option push -b-
enum TmxHeaderOption { hoActivateOnSelect, hoAlwaysFlat, hoButtonDown, hoCustomSettings, hoDrawBorder, 
	hoDrawCaptionBorder, hoDrawDisabledButton, hoDrawDownButton, hoDrawFocusedButton, hoFocusDisabled, 
	hoNoCaption, hoReadOnlyCaption, hoRoundedHeader, hoShowSelectedImage, hoShowStatusButton, hoUseHighlightFont 
	};
#pragma option pop

typedef Set<TmxHeaderOption, hoActivateOnSelect, hoUseHighlightFont>  TmxHeaderOptions;

#pragma option push -b-
enum TmxCaptionStyle { csButtonStyle, csCustomDraw };
#pragma option pop

#pragma option push -b-
enum TmxExplorerMethod { emStandard, emCloseUp };
#pragma option pop

#pragma option push -b-
enum TmxBarOption { boAcceptOLEDrop, boActivateToolBoxScroller, boAlwaysFlatScroller, boAutoScroll, 
	boAutoChangeHeader, boChangeToDisabled, boExplorerBorder, boFocusOnMouseEnter, boHeaderFrame, boInternalDrop, 
	hoShowFocusRect };
#pragma option pop

typedef Set<TmxBarOption, boAcceptOLEDrop, hoShowFocusRect>  TmxBarOptions;

#pragma option push -b-
enum TmxHeaderState { hsOpened, hsClosed };
#pragma option pop

#pragma option push -b-
enum TmxBorderStyle { mxNone, mxFlat, mxFocusedFlat, mxSolid, mxSingle, mxButton, mxDefault, mxFlatButton, 
	mxFlatButtonDown, mxSpeedUp };
#pragma option pop

#pragma option push -b-
enum TmxButtonOption { boAutoWidthLabel, boCustomFont, boCustomStyle, boCustomView, boUnderlineFont, 
	boReadOnlyCaption };
#pragma option pop

typedef Set<TmxButtonOption, boAutoWidthLabel, boReadOnlyCaption>  TmxButtonOptions;

#pragma option push -b-
enum TmxScrollView { ssNormal, ssExpress, ssToolBox };
#pragma option pop

#pragma option push -b-
enum TmxPreSet { psOutlook, psFlatOutlook, psOutlookExpress, psOffice, psOfficeXP, psOffice2000, psToolBox, 
	psFlatToolBox, psExplorerBar, psExplorerBarXP, psExplorerBar2000 };
#pragma option pop

#pragma option push -b-
enum TmxDropMode { dmNowhere, dmButton };
#pragma option pop

#pragma option push -b-
enum mxOutlookBarPro__1 { tsDragPending, tsDragging, tsClearPending };
#pragma option pop

typedef Set<mxOutlookBarPro__1, tsDragPending, tsClearPending>  TmxOutlookBarStates;

typedef unsigned *PCardinal;

#pragma option push -b-
enum TmxHitPosition { hpUnknown, hpAbove, hpInsert, hpBelow };
#pragma option pop

#pragma option push -b-
enum TmxHitType { xhtNowhere, xhtHeaderButton, xhtHeaderBackground, xhtButton };
#pragma option pop

#pragma option push -b-
enum TmxGlyphPosition { gpTopLeft, gpTopRight, gpBottomLeft, gpBottomRight, gpCenter };
#pragma option pop

struct TmxReference;
typedef TmxReference *PmxReference;

class DELPHICLASS TmxOutlookBarPro;
class DELPHICLASS TmxButton;
typedef void __fastcall (__closure *TmxEventBeforeDrawCommandButton)(System::TObject* Sender, Graphics::TCanvas* 
	ACanvas, Windows::TRect &AButtonRect, Windows::TRect &AFocusRect, Windows::TRect &AImageRect, Windows::TRect 
	&ALabelRect);

typedef void __fastcall (__closure *TmxEventDrawCommandButton)(System::TObject* Sender, Graphics::TCanvas* 
	ACanvas, TmxButtonView AView, TmxButtonState AState, const Windows::TRect &AImageRect, const Windows::TRect 
	&ALabelRect);

typedef void __fastcall (__closure *TmxEventAfterDrawCommandButton)(System::TObject* Sender, Graphics::TCanvas* 
	ACanvas, const Windows::TRect &AImageRect, const Windows::TRect &ALabelRect);

class DELPHICLASS TmxBarSettings;
class DELPHICLASS TmxHeader;
class PASCALIMPLEMENTATION TmxButton : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	bool FAllowGrayed;
	bool FPaintGrayed;
	bool FChecked;
	int FMargin;
	TmxButtonKind FButtonKind;
	bool FFlashing;
	bool FAlerted;
	bool FAutoSize;
	Classes::TAlignment FAlignment;
	Controls::TControlActionLink* FActionLink;
	TmxButtonStyle FButtonStyle;
	TmxButtonView FButtonView;
	Windows::TRect FButtonRect;
	Windows::TRect FCheckBoxRect;
	Classes::TBiDiMode FBiDiMode;
	Windows::TRect FImageRect;
	Windows::TRect FFocusRect;
	Windows::TRect FLabelRect;
	TmxHitPosition FDragDropHitStatus;
	AnsiString FCaption;
	Controls::TCursor FCursor;
	Graphics::TColor FColor;
	void *FData;
	bool FEnabled;
	Graphics::TFont* FFont;
	Graphics::TFont* FHighlightFont;
	Classes::THelpContext FHelpContext;
	Word FHeight;
	AnsiString FHint;
	Imglist::TCustomImageList* FImageList;
	Imglist::TImageIndex FImageIndex;
	AnsiString FName;
	bool FParentBiDiMode;
	bool FShowAccelChar;
	int FTag;
	bool FTransparent;
	TmxButtonState FState;
	TmxButtonOptions FOptions;
	AnsiString FUserString;
	bool FVisible;
	Word FWidth;
	bool FWordWrap;
	Menus::TPopupMenu* FPopupMenu;
	Stdctrls::TCheckBoxState FCheckState;
	Classes::TNotifyEvent FOnClick;
	TmxEventBeforeDrawCommandButton FOnBeforeDrawButton;
	TmxEventDrawCommandButton FOnDrawButton;
	TmxEventAfterDrawCommandButton FOnAfterDrawButton;
	Classes::TNotifyEvent FOnChangeParameter;
	void __fastcall SetChangeParameter(Classes::TNotifyEvent AValue);
	__property Classes::TNotifyEvent OnChangeParameter = {read=FOnChangeParameter, write=SetChangeParameter
		};
	void __fastcall SetTransparent(bool AValue);
	void __fastcall SetHint(AnsiString AValue);
	void __fastcall SetHelpContext(Classes::THelpContext AValue);
	void __fastcall SetImageIndex(Imglist::TImageIndex AValue);
	void __fastcall SetEnabled(bool AValue);
	void __fastcall SetVisible(bool AValue);
	void __fastcall SetData(void * AValue);
	Classes::TBasicAction* __fastcall GetAction(void);
	void __fastcall SetAction(Classes::TBasicAction* AValue);
	void __fastcall SetCaption(AnsiString AValue);
	void __fastcall DoActionChange(System::TObject* Sender);
	void __fastcall ChangeParameter(void);
	int __fastcall GetButtonIndex(void);
	void __fastcall SetButtonIndex(int AValue);
	void __fastcall SetButtonStyle(TmxButtonStyle AValue);
	void __fastcall SetButtonView(TmxButtonView AValue);
	void __fastcall SetAutoSize(bool AValue);
	void __fastcall SetColor(Graphics::TColor AValue);
	void __fastcall SetFont(Graphics::TFont* AValue);
	void __fastcall SetHighlightFont(Graphics::TFont* AValue);
	void __fastcall SetHeight(Word AValue);
	void __fastcall SetWidth(Word AValue);
	void __fastcall SetOptions(TmxButtonOptions AValue);
	void __fastcall SetWordWrap(bool AValue);
	void __fastcall SetAlignment(Classes::TAlignment AValue);
	virtual void __fastcall SetBiDiMode(Classes::TBiDiMode AValue);
	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(Windows::TRect &ButtonRect, Windows::TRect &ImageRect, Windows::TRect 
		&FocusRect, Windows::TRect &LabelRect);
	Windows::TRect __fastcall CalculateImagePositon(const Windows::TRect &ButtonRect);
	Windows::TRect __fastcall CalculateSmallImagePositon(const Windows::TRect &ButtonRect);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -