ithermometerx.h
00001 #if !defined(AFX_ITHERMOMETERX_H__340B413F_84BE_11D5_A851_0050BA05DDC8__INCLUDED_)
00002 #define AFX_ITHERMOMETERX_H__340B413F_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 CiThermometerX : public CWnd
00021 {
00022 protected:
00023 DECLARE_DYNCREATE(CiThermometerX)
00024 public:
00025 CLSID const& GetClsid()
00026 {
00027 static CLSID const clsid
00028 = { 0xc5412df6, 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 GetIndicatorWidth();
00051 void SetIndicatorWidth(long nNewValue);
00052 long GetIndicatorBulbSize();
00053 void SetIndicatorBulbSize(long nNewValue);
00054 long GetEndsMargin();
00055 void SetEndsMargin(long nNewValue);
00056 unsigned long GetIndicatorColor();
00057 void SetIndicatorColor(unsigned long newValue);
00058 unsigned long GetIndicatorBackGroundColor();
00059 void SetIndicatorBackGroundColor(unsigned long newValue);
00060 long GetOrientation();
00061 void SetOrientation(long nNewValue);
00062 long GetOrientationTickMarks();
00063 void SetOrientationTickMarks(long nNewValue);
00064 BOOL GetShowTicksMajorFirstLast();
00065 void SetShowTicksMajorFirstLast(BOOL bNewValue);
00066 unsigned long GetBackGroundColor();
00067 void SetBackGroundColor(unsigned long newValue);
00068 long GetBorderStyle();
00069 void SetBorderStyle(long nNewValue);
00070 BOOL GetShowMaxPointer();
00071 void SetShowMaxPointer(BOOL bNewValue);
00072 BOOL GetShowMinPointer();
00073 void SetShowMinPointer(BOOL bNewValue);
00074 long GetMinMaxPointerSize();
00075 void SetMinMaxPointerSize(long nNewValue);
00076 long GetMinMaxPointerMargin();
00077 void SetMinMaxPointerMargin(long nNewValue);
00078 unsigned long GetMaxPointerColor();
00079 void SetMaxPointerColor(unsigned long newValue);
00080 unsigned long GetMinPointerColor();
00081 void SetMinPointerColor(unsigned long newValue);
00082 long GetOffsetX();
00083 void SetOffsetX(long nNewValue);
00084 long GetOffsetY();
00085 void SetOffsetY(long nNewValue);
00086 long GetTickMajorStyle();
00087 void SetTickMajorStyle(long nNewValue);
00088 long GetTickMinorStyle();
00089 void SetTickMinorStyle(long nNewValue);
00090 BOOL GetShowTicksMajor();
00091 void SetShowTicksMajor(BOOL bNewValue);
00092 BOOL GetShowTicksMinor();
00093 void SetShowTicksMinor(BOOL bNewValue);
00094 BOOL GetShowTickLabels();
00095 void SetShowTickLabels(BOOL bNewValue);
00096 long GetTickMajorCount();
00097 void SetTickMajorCount(long nNewValue);
00098 unsigned long GetTickMajorColor();
00099 void SetTickMajorColor(unsigned long newValue);
00100 long GetTickMajorLength();
00101 void SetTickMajorLength(long nNewValue);
00102 long GetTickMinorAlignment();
00103 void SetTickMinorAlignment(long nNewValue);
00104 long GetTickMinorCount();
00105 void SetTickMinorCount(long nNewValue);
00106 unsigned long GetTickMinorColor();
00107 void SetTickMinorColor(unsigned long newValue);
00108 long GetTickMinorLength();
00109 void SetTickMinorLength(long nNewValue);
00110 long GetTickMargin();
00111 void SetTickMargin(long nNewValue);
00112 long GetTickLabelMargin();
00113 void SetTickLabelMargin(long nNewValue);
00114 COleFont GetTickLabelFont();
00115 void SetTickLabelFont(LPDISPATCH newValue);
00116 long GetTickLabelPrecision();
00117 void SetTickLabelPrecision(long nNewValue);
00118 void ResetMinMax();
00119 double GetCurrentMax();
00120 void SetCurrentMax(double newValue);
00121 double GetCurrentMin();
00122 void SetCurrentMin(double newValue);
00123 double GetPositionPercent();
00124 void SetPositionPercent(double newValue);
00125 double GetPosition();
00126 void SetPosition(double newValue);
00127 double GetPositionMax();
00128 void SetPositionMax(double newValue);
00129 double GetPositionMin();
00130 void SetPositionMin(double newValue);
00131 BOOL GetVisible();
00132 void SetVisible(BOOL bNewValue);
00133 BOOL GetEnabled();
00134 void SetEnabled(BOOL bNewValue);
00135 void AboutBox();
00136 unsigned long GetTickLabelFontColor();
00137 void SetTickLabelFontColor(unsigned long newValue);
00138 CPicture GetBackGroundPicture();
00139 void SetBackGroundPicture(LPDISPATCH newValue);
00140 void ShowPropertyEditor();
00141 void SetPositionNoEvent(double Value);
00142 BOOL GetMinMaxFixed();
00143 void SetMinMaxFixed(BOOL bNewValue);
00144 BOOL GetMinMaxUserCanMove();
00145 void SetMinMaxUserCanMove(BOOL bNewValue);
00146 long GetIndicatorStyle();
00147 void SetIndicatorStyle(long nNewValue);
00148 BOOL GetTransparent();
00149 void SetTransparent(BOOL bNewValue);
00150 void AddLimit(long PointerSize, long PointerMargin, BOOL DrawScaleSide, double UpperValue, double LowerValue, unsigned long UpperPointerColor, unsigned long LowerPointerColor);
00151 void RemoveLimit(long Index);
00152 void RemoveAllLimits();
00153 double GetLimitUpperValue(long Index);
00154 double GetLimitLowerValue(long Index);
00155 long GetLimitPointerSize(long Index);
00156 long GetLimitPointerMargin(long Index);
00157 unsigned long GetLimitUpperPointerColor(long Index);
00158 BOOL GetLimitShowUpperPointer(long Index);
00159 BOOL GetLimitDrawScaleSide(long Index);
00160 long GetLimitCount();
00161 void SetLimitUpperValue(long Index, double Value);
00162 void SetLimitLowerValue(long Index, double Value);
00163 void SetLimitPointerSize(long Index, long Value);
00164 void SetLimitPointerMargin(long Index, long Value);
00165 void SetLimitUpperPointerColor(long Index, unsigned long Value);
00166 void SetLimitShowUpperPointer(long Index, BOOL Value);
00167 void SetLimitDrawScaleSide(long Index, BOOL Value);
00168 void RepaintAll();
00169 BOOL GetAutoCenter();
00170 void SetAutoCenter(BOOL bNewValue);
00171 unsigned long GetLimitLowerPointerColor(long Index);
00172 BOOL GetLimitShowLowerPointer(long Index);
00173 void SetLimitLowerPointerColor(long Index, unsigned long Value);
00174 void SetLimitShowLowerPointer(long Index, BOOL Value);
00175 long GetPrecisionStyle();
00176 void SetPrecisionStyle(long nNewValue);
00177 void BeginUpdate();
00178 void EndUpdate();
00179 long GetAutoScaleDesiredTicks();
00180 void SetAutoScaleDesiredTicks(long nNewValue);
00181 long GetAutoScaleMaxTicks();
00182 void SetAutoScaleMaxTicks(long nNewValue);
00183 BOOL GetAutoScaleEnabled();
00184 void SetAutoScaleEnabled(BOOL bNewValue);
00185 long GetAutoScaleStyle();
00186 void SetAutoScaleStyle(long nNewValue);
00187 void Lock();
00188 void Unlock();
00189 long GetUpdateFrameRate();
00190 void SetUpdateFrameRate(long nNewValue);
00191 long GetComponentHandle();
00192 };
00193
00194
00195
00196
00197 #endif // AFX_ITHERMOMETERX_H__340B413F_84BE_11D5_A851_0050BA05DDC8__INCLUDED_
Erzeugt am Tue Mar 11 14:25:16 2008 für SchunkFPS von
1.3.7