ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

graphctl.h
Go to the documentation of this file.
00001 /*
00002  *  ReactOS Task Manager
00003  *
00004  *  graphctl.h
00005  *
00006  *  Copyright (C) 2002  Robert Dickenson <robd@reactos.org>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2.1 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00021  */
00022 
00023 #pragma once
00024 
00025 #define MAX_PLOTS 4
00026 #define MAX_CTRLS 4
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00032 #if 0
00033 
00034 /* Attributes */
00035 public:
00036   void SetXUnits(const char* string);
00037   void SetYUnits(const char* string);
00038 
00039   /* Operations */
00040 public:
00041   BOOL Create(DWORD dwStyle, const RECT& rect, HWND hParentWnd, UINT nID=NULL);
00042 
00043 #endif
00044 
00045 typedef struct
00046 {
00047   int m_nShiftPixels;          /* amount to shift with each new point */
00048   int m_nYDecimals;
00049 
00050   char m_strXUnitsString[50];
00051   char m_strYUnitsString[50];
00052 
00053   COLORREF m_crBackColor;                 /* background color */
00054   COLORREF m_crGridColor;                 /* grid color */
00055   COLORREF m_crPlotColor[MAX_PLOTS];      /* data color   */
00056 
00057   double m_dCurrentPosition[MAX_PLOTS];   /* current position */
00058   double m_dPreviousPosition[MAX_PLOTS];  /* previous position */
00059 
00060 /* those were protected fields */
00061   int m_nHalfShiftPixels;
00062   int m_nPlotShiftPixels;
00063   int m_nClientHeight;
00064   int m_nClientWidth;
00065   int m_nPlotHeight;
00066   int m_nPlotWidth;
00067 
00068   double m_dLowerLimit;        /* lower bounds */
00069   double m_dUpperLimit;        /* upper bounds */
00070   double m_dRange;
00071   double m_dVerticalFactor;
00072 
00073   HWND     m_hWnd;
00074   HWND     m_hParentWnd;
00075   HDC      m_dcGrid;
00076   HDC      m_dcPlot;
00077   HBITMAP  m_bitmapOldGrid;
00078   HBITMAP  m_bitmapOldPlot;
00079   HBITMAP  m_bitmapGrid;
00080   HBITMAP  m_bitmapPlot;
00081   HBRUSH   m_brushBack;
00082   HPEN     m_penPlot[MAX_PLOTS];
00083   RECT     m_rectClient;
00084   RECT     m_rectPlot;
00085 } TGraphCtrl;
00086 
00087 extern WNDPROC OldGraphCtrlWndProc;
00088 double  GraphCtrl_AppendPoint(TGraphCtrl* this,
00089                               double dNewPoint0, double dNewPoint1,
00090                               double dNewPoint2, double dNewPoint3);
00091 BOOL    GraphCtrl_Create(TGraphCtrl* this, HWND hWnd, HWND hParentWnd,
00092 UINT nID);
00093 void    GraphCtrl_Dispose(TGraphCtrl* this);
00094 void    GraphCtrl_DrawPoint(TGraphCtrl* this);
00095 void    GraphCtrl_InvalidateCtrl(TGraphCtrl* this, BOOL bResize);
00096 void    GraphCtrl_Paint(TGraphCtrl* this, HWND hWnd, HDC dc);
00097 void    GraphCtrl_Reset(TGraphCtrl* this);
00098 void    GraphCtrl_Resize(TGraphCtrl* this);
00099 void    GraphCtrl_SetBackgroundColor(TGraphCtrl* this, COLORREF
00100 color);
00101 void    GraphCtrl_SetGridColor(TGraphCtrl* this, COLORREF color);
00102 void    GraphCtrl_SetPlotColor(TGraphCtrl* this, int plot, COLORREF
00103 color);
00104 void    GraphCtrl_SetRange(TGraphCtrl* this, double dLower, double
00105 dUpper, int nDecimalPlaces);
00106 
00107 INT_PTR CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
00108 
00109 #ifdef __cplusplus
00110 }
00111 #endif

Generated on Sat May 26 2012 04:16:28 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.