iangulargaugex.h
00001 #if !defined(AFX_IANGULARGAUGEX_H__D0E4535A_871C_11D5_A854_0050BA05DDC8__INCLUDED_)
00002 #define AFX_IANGULARGAUGEX_H__D0E4535A_871C_11D5_A854_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 CiAngularGaugeX : public CWnd
00021 {
00022 protected:
00023 DECLARE_DYNCREATE(CiAngularGaugeX)
00024 public:
00025 CLSID const& GetClsid()
00026 {
00027 static CLSID const clsid
00028 = { 0xc5412dd5, 0x2e2f, 0x11d3, { 0x85, 0xbf, 0x0, 0x10, 0x5a, 0xc8, 0xb7, 0x15 } };
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 GetOffsetX();
00103 void SetOffsetX(long nNewValue);
00104 long GetOffsetY();
00105 void SetOffsetY(long nNewValue);
00106 unsigned long GetSectionColor1();
00107 void SetSectionColor1(unsigned long newValue);
00108 unsigned long GetSectionColor2();
00109 void SetSectionColor2(unsigned long newValue);
00110 unsigned long GetSectionColor3();
00111 void SetSectionColor3(unsigned long newValue);
00112 unsigned long GetSectionColor4();
00113 void SetSectionColor4(unsigned long newValue);
00114 unsigned long GetSectionColor5();
00115 void SetSectionColor5(unsigned long newValue);
00116 long GetSectionCount();
00117 void SetSectionCount(long nNewValue);
00118 double GetSectionEnd1();
00119 void SetSectionEnd1(double newValue);
00120 double GetSectionEnd2();
00121 void SetSectionEnd2(double newValue);
00122 double GetSectionEnd3();
00123 void SetSectionEnd3(double newValue);
00124 double GetSectionEnd4();
00125 void SetSectionEnd4(double newValue);
00126 unsigned long GetBackGroundColor();
00127 void SetBackGroundColor(unsigned long newValue);
00128 long GetBorderStyle();
00129 void SetBorderStyle(long nNewValue);
00130 BOOL GetShowMaxPointer();
00131 void SetShowMaxPointer(BOOL bNewValue);
00132 BOOL GetShowMinPointer();
00133 void SetShowMinPointer(BOOL bNewValue);
00134 long GetMinMaxPointerSize();
00135 void SetMinMaxPointerSize(long nNewValue);
00136 long GetMinMaxPointerMargin();
00137 void SetMinMaxPointerMargin(long nNewValue);
00138 unsigned long GetMaxPointerColor();
00139 void SetMaxPointerColor(unsigned long newValue);
00140 unsigned long GetMinPointerColor();
00141 void SetMinPointerColor(unsigned long newValue);
00142 BOOL GetShowTicksMajor();
00143 void SetShowTicksMajor(BOOL bNewValue);
00144 BOOL GetShowTicksMinor();
00145 void SetShowTicksMinor(BOOL bNewValue);
00146 BOOL GetShowTickLabels();
00147 void SetShowTickLabels(BOOL bNewValue);
00148 long GetTickMajorCount();
00149 void SetTickMajorCount(long nNewValue);
00150 unsigned long GetTickMajorColor();
00151 void SetTickMajorColor(unsigned long newValue);
00152 long GetTickMajorLength();
00153 void SetTickMajorLength(long nNewValue);
00154 long GetTickMinorAlignment();
00155 void SetTickMinorAlignment(long nNewValue);
00156 long GetTickMinorCount();
00157 void SetTickMinorCount(long nNewValue);
00158 unsigned long GetTickMinorColor();
00159 void SetTickMinorColor(unsigned long newValue);
00160 long GetTickMinorLength();
00161 void SetTickMinorLength(long nNewValue);
00162 long GetTickMargin();
00163 void SetTickMargin(long nNewValue);
00164 long GetTickLabelMargin();
00165 void SetTickLabelMargin(long nNewValue);
00166 COleFont GetTickLabelFont();
00167 void SetTickLabelFont(LPDISPATCH newValue);
00168 long GetTickLabelPrecision();
00169 void SetTickLabelPrecision(long nNewValue);
00170 void ResetMinMax();
00171 double GetCurrentMax();
00172 void SetCurrentMax(double newValue);
00173 double GetCurrentMin();
00174 void SetCurrentMin(double newValue);
00175 double GetPositionPercent();
00176 void SetPositionPercent(double newValue);
00177 double GetPosition();
00178 void SetPosition(double newValue);
00179 double GetPositionMax();
00180 void SetPositionMax(double newValue);
00181 double GetPositionMin();
00182 void SetPositionMin(double newValue);
00183 BOOL GetVisible();
00184 void SetVisible(BOOL bNewValue);
00185 BOOL GetEnabled();
00186 void SetEnabled(BOOL bNewValue);
00187 void AboutBox();
00188 unsigned long GetTickLabelFontColor();
00189 void SetTickLabelFontColor(unsigned long newValue);
00190 unsigned long GetLabel1FontColor();
00191 void SetLabel1FontColor(unsigned long newValue);
00192 unsigned long GetLabel2FontColor();
00193 void SetLabel2FontColor(unsigned long newValue);
00194 CPicture GetBackGroundPicture();
00195 void SetBackGroundPicture(LPDISPATCH newValue);
00196 void ShowPropertyEditor();
00197 void SetPositionNoEvent(double Value);
00198 BOOL GetMinMaxFixed();
00199 void SetMinMaxFixed(BOOL bNewValue);
00200 BOOL GetMinMaxUserCanMove();
00201 void SetMinMaxUserCanMove(BOOL bNewValue);
00202 BOOL GetReverseScale();
00203 void SetReverseScale(BOOL bNewValue);
00204 unsigned long GetHubColor();
00205 void SetHubColor(unsigned long newValue);
00206 long GetPrecisionStyle();
00207 void SetPrecisionStyle(long nNewValue);
00208 BOOL GetAutoScaleEnabled();
00209 void SetAutoScaleEnabled(BOOL bNewValue);
00210 long GetAutoScaleDesiredTicks();
00211 void SetAutoScaleDesiredTicks(long nNewValue);
00212 long GetAutoScaleMaxTicks();
00213 void SetAutoScaleMaxTicks(long nNewValue);
00214 long GetAutoScaleStyle();
00215 void SetAutoScaleStyle(long nNewValue);
00216 BOOL GetTransparent();
00217 void SetTransparent(BOOL bNewValue);
00218 void RepaintAll();
00219 void BeginUpdate();
00220 void EndUpdate();
00221 void AddLimit(long PointerSize, long PointerMargin, BOOL DrawScaleSide, double UpperValue, double LowerValue, unsigned long UpperPointerColor, unsigned long LowerPointerColor);
00222 void RemoveLimit(long Index);
00223 void RemoveAllLimits();
00224 long GetLimitCount();
00225 double GetLimitUpperValue(long Index);
00226 double GetLimitLowerValue(long Index);
00227 long GetLimitPointerSize(long Index);
00228 long GetLimitPointerMargin(long Index);
00229 unsigned long GetLimitUpperPointerColor(long Index);
00230 unsigned long GetLimitLowerPointerColor(long Index);
00231 BOOL GetLimitShowUpperPointer(long Index);
00232 BOOL GetLimitShowLowerPointer(long Index);
00233 BOOL GetLimitDrawScaleSide(long Index);
00234 void SetLimitUpperValue(long Index, double Value);
00235 void SetLimitLowerValue(long Index, double Value);
00236 void SetLimitPointerSize(long Index, long Value);
00237 void SetLimitPointerMargin(long Index, long Value);
00238 void SetLimitUpperPointerColor(long Index, unsigned long Value);
00239 void SetLimitLowerPointerColor(long Index, unsigned long Value);
00240 void SetLimitShowUpperPointer(long Index, BOOL Value);
00241 void SetLimitShowLowerPointer(long Index, BOOL Value);
00242 void SetLimitDrawScaleSide(long Index, BOOL Value);
00243 void Lock();
00244 void Unlock();
00245 BOOL GetAutoCenter();
00246 void SetAutoCenter(BOOL bNewValue);
00247 long GetUpdateFrameRate();
00248 void SetUpdateFrameRate(long nNewValue);
00249 long GetTickLabelAlignment();
00250 void SetTickLabelAlignment(long nNewValue);
00251 long GetComponentHandle();
00252 };
00253
00254
00255
00256
00257 #endif // AFX_IANGULARGAUGEX_H__D0E4535A_871C_11D5_A854_0050BA05DDC8__INCLUDED_
Erzeugt am Tue Mar 11 14:25:15 2008 für SchunkFPS von
1.3.7