iangularloggaugex.h
00001 #if !defined(AFX_IANGULARLOGGAUGEX_H__340B413E_84BE_11D5_A851_0050BA05DDC8__INCLUDED_)
00002 #define AFX_IANGULARLOGGAUGEX_H__340B413E_84BE_11D5_A851_0050BA05DDC8__INCLUDED_
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00008
00009
00010
00011
00012
00013
00014 class COleFont;
00015 class CPicture;
00016
00018
00019
00020 class CiAngularLogGaugeX : public CWnd
00021 {
00022 protected:
00023 DECLARE_DYNCREATE(CiAngularLogGaugeX)
00024 public:
00025 CLSID const& GetClsid()
00026 {
00027 static CLSID const clsid
00028 = { 0xe5f63bad, 0xd2a6, 0x11d3, { 0x85, 0xc2, 0x0, 0xa0, 0xcc, 0x3a, 0x58, 0xc9 } };
00029 return clsid;
00030 }
00031 virtual BOOL Create(LPCTSTR lpszClassName,
00032 LPCTSTR lpszWindowName, DWORD dwStyle,
00033 const RECT& rect,
00034 CWnd* pParentWnd, UINT nID,
00035 CCreateContext* pContext = NULL)
00036 { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
00037
00038 BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
00039 const RECT& rect, CWnd* pParentWnd, UINT nID,
00040 CFile* pPersist = NULL, BOOL bStorage = FALSE,
00041 BSTR bstrLicKey = NULL)
00042 { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
00043 pPersist, bStorage, bstrLicKey); }
00044
00045
00046 public:
00047
00048
00049 public:
00050 long GetArcRadius();
00051 void SetArcRadius(long nNewValue);
00052 long GetArcRangeDegrees();
00053 void SetArcRangeDegrees(long nNewValue);
00054 long GetArcStartDegrees();
00055 void SetArcStartDegrees(long nNewValue);
00056 CString GetLabel1Text();
00057 void SetLabel1Text(LPCTSTR lpszNewValue);
00058 COleFont GetLabel1Font();
00059 void SetLabel1Font(LPDISPATCH newValue);
00060 long GetLabel1AlignVertical();
00061 void SetLabel1AlignVertical(long nNewValue);
00062 long GetLabel1AlignHorizontal();
00063 void SetLabel1AlignHorizontal(long nNewValue);
00064 long GetLabel1OffsetX();
00065 void SetLabel1OffsetX(long nNewValue);
00066 long GetLabel1OffsetY();
00067 void SetLabel1OffsetY(long nNewValue);
00068 CString GetLabel2Text();
00069 void SetLabel2Text(LPCTSTR lpszNewValue);
00070 COleFont GetLabel2Font();
00071 void SetLabel2Font(LPDISPATCH newValue);
00072 long GetLabel2AlignVertical();
00073 void SetLabel2AlignVertical(long nNewValue);
00074 long GetLabel2AlignHorizontal();
00075 void SetLabel2AlignHorizontal(long nNewValue);
00076 long GetLabel2OffsetX();
00077 void SetLabel2OffsetX(long nNewValue);
00078 long GetLabel2OffsetY();
00079 void SetLabel2OffsetY(long nNewValue);
00080 long GetHubSize();
00081 void SetHubSize(long nNewValue);
00082 long GetMinMaxPointerStyle();
00083 void SetMinMaxPointerStyle(long nNewValue);
00084 long GetPointerMargin();
00085 void SetPointerMargin(long nNewValue);
00086 unsigned long GetPointerColor();
00087 void SetPointerColor(unsigned long newValue);
00088 long GetPointerSize();
00089 void SetPointerSize(long nNewValue);
00090 long GetPointerStyle();
00091 void SetPointerStyle(long nNewValue);
00092 BOOL GetShowInnerArcRadius();
00093 void SetShowInnerArcRadius(BOOL bNewValue);
00094 BOOL GetShowOuterArcRadius();
00095 void SetShowOuterArcRadius(BOOL bNewValue);
00096 BOOL GetShowHub();
00097 void SetShowHub(BOOL bNewValue);
00098 BOOL GetShowLabel1();
00099 void SetShowLabel1(BOOL bNewValue);
00100 BOOL GetShowLabel2();
00101 void SetShowLabel2(BOOL bNewValue);
00102 long GetTickLabelStyle();
00103 void SetTickLabelStyle(long nNewValue);
00104 long GetOffsetX();
00105 void SetOffsetX(long nNewValue);
00106 long GetOffsetY();
00107 void SetOffsetY(long nNewValue);
00108 unsigned long GetTickMajorColor();
00109 void SetTickMajorColor(unsigned long newValue);
00110 long GetTickMajorLength();
00111 void SetTickMajorLength(long nNewValue);
00112 long GetTickMinorAlignment();
00113 void SetTickMinorAlignment(long nNewValue);
00114 unsigned long GetTickMinorColor();
00115 void SetTickMinorColor(unsigned long newValue);
00116 long GetTickMinorLength();
00117 void SetTickMinorLength(long nNewValue);
00118 long GetTickMargin();
00119 void SetTickMargin(long nNewValue);
00120 long GetTickLabelMargin();
00121 void SetTickLabelMargin(long nNewValue);
00122 COleFont GetTickLabelFont();
00123 void SetTickLabelFont(LPDISPATCH newValue);
00124 long GetTickLabelPrecision();
00125 void SetTickLabelPrecision(long nNewValue);
00126 unsigned long GetSectionColor1();
00127 void SetSectionColor1(unsigned long newValue);
00128 unsigned long GetSectionColor2();
00129 void SetSectionColor2(unsigned long newValue);
00130 unsigned long GetSectionColor3();
00131 void SetSectionColor3(unsigned long newValue);
00132 unsigned long GetSectionColor4();
00133 void SetSectionColor4(unsigned long newValue);
00134 unsigned long GetSectionColor5();
00135 void SetSectionColor5(unsigned long newValue);
00136 long GetSectionCount();
00137 void SetSectionCount(long nNewValue);
00138 double GetSectionEnd1();
00139 void SetSectionEnd1(double newValue);
00140 double GetSectionEnd2();
00141 void SetSectionEnd2(double newValue);
00142 double GetSectionEnd3();
00143 void SetSectionEnd3(double newValue);
00144 double GetSectionEnd4();
00145 void SetSectionEnd4(double newValue);
00146 unsigned long GetBackGroundColor();
00147 void SetBackGroundColor(unsigned long newValue);
00148 long GetBorderStyle();
00149 void SetBorderStyle(long nNewValue);
00150 BOOL GetShowMaxPointer();
00151 void SetShowMaxPointer(BOOL bNewValue);
00152 BOOL GetShowMinPointer();
00153 void SetShowMinPointer(BOOL bNewValue);
00154 long GetMinMaxPointerSize();
00155 void SetMinMaxPointerSize(long nNewValue);
00156 long GetMinMaxPointerMargin();
00157 void SetMinMaxPointerMargin(long nNewValue);
00158 unsigned long GetMaxPointerColor();
00159 void SetMaxPointerColor(unsigned long newValue);
00160 unsigned long GetMinPointerColor();
00161 void SetMinPointerColor(unsigned long newValue);
00162 double GetCurrentMax();
00163 void SetCurrentMax(double newValue);
00164 double GetCurrentMin();
00165 void SetCurrentMin(double newValue);
00166 double GetPositionPercent();
00167 void SetPositionPercent(double newValue);
00168 double GetPosition();
00169 void SetPosition(double newValue);
00170 double GetPositionMax();
00171 void SetPositionMax(double newValue);
00172 double GetPositionMin();
00173 void SetPositionMin(double newValue);
00174 void AboutBox();
00175 unsigned long GetTickLabelFontColor();
00176 void SetTickLabelFontColor(unsigned long newValue);
00177 unsigned long GetLabel1FontColor();
00178 void SetLabel1FontColor(unsigned long newValue);
00179 unsigned long GetLabel2FontColor();
00180 void SetLabel2FontColor(unsigned long newValue);
00181 CPicture GetBackGroundPicture();
00182 void SetBackGroundPicture(LPDISPATCH newValue);
00183 void ShowPropertyEditor();
00184 BOOL GetEnabled();
00185 void SetEnabled(BOOL bNewValue);
00186 void ResetMinMax();
00187 void SetPositionNoEvent(double Value);
00188 BOOL GetMinMaxFixed();
00189 void SetMinMaxFixed(BOOL bNewValue);
00190 unsigned long GetHubColor();
00191 void SetHubColor(unsigned long newValue);
00192 BOOL GetTransparent();
00193 void SetTransparent(BOOL bNewValue);
00194 void RepaintAll();
00195 void BeginUpdate();
00196 void EndUpdate();
00197 BOOL GetMinMaxUserCanMove();
00198 void SetMinMaxUserCanMove(BOOL bNewValue);
00199 void AddLimit(long PointerSize, long PointerMargin, BOOL DrawScaleSide, double UpperValue, double LowerValue, unsigned long UpperPointerColor, unsigned long LowerPointerColor);
00200 void RemoveLimit(long Index);
00201 void RemoveAllLimits();
00202 long GetLimitCount();
00203 double GetLimitUpperValue(long Index);
00204 double GetLimitLowerValue(long Index);
00205 long GetLimitPointerSize(long Index);
00206 long GetLimitPointerMargin(long Index);
00207 unsigned long GetLimitUpperPointerColor(long Index);
00208 unsigned long GetLimitLowerPointerColor(long Index);
00209 BOOL GetLimitShowUpperPointer(long Index);
00210 BOOL GetLimitShowLowerPointer(long Index);
00211 BOOL GetLimitDrawScaleSide(long Index);
00212 void SetLimitUpperValue(long Index, double Value);
00213 void SetLimitLowerValue(long Index, double Value);
00214 void SetLimitPointerSize(long Index, long Value);
00215 void SetLimitPointerMargin(long Index, long Value);
00216 void SetLimitUpperPointerColor(long Index, unsigned long Value);
00217 void SetLimitLowerPointerColor(long Index, unsigned long Value);
00218 void SetLimitShowUpperPointer(long Index, BOOL Value);
00219 void SetLimitShowLowerPointer(long Index, BOOL Value);
00220 void SetLimitDrawScaleSide(long Index, BOOL Value);
00221 void Lock();
00222 void Unlock();
00223 long GetUpdateFrameRate();
00224 void SetUpdateFrameRate(long nNewValue);
00225 long GetComponentHandle();
00226 };
00227
00228
00229
00230
00231 #endif // AFX_IANGULARLOGGAUGEX_H__340B413E_84BE_11D5_A851_0050BA05DDC8__INCLUDED_
Erzeugt am Tue Mar 11 14:25:03 2008 für SchunkFPS von
1.3.7