ReactOS  0.4.15-dev-4863-gba0d16f
graphctl.h
Go to the documentation of this file.
1 /*
2  * ReactOS Task Manager
3  *
4  * graphctl.h
5  *
6  * Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #pragma once
24 
25 #define NUM_PLOTS 2
26 #define PLOT_SHIFT 2
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 
33 
34 typedef struct _TM_GRAPH_CONTROL
35 {
40  HPEN hPenGrid;
41  HPEN hPen0;
42  HPEN hPen1;
43  HBRUSH hBrushBack;
44 
50 
54 
57 }
59 
60 typedef struct _TM_FORMAT
61 {
69 }
71 
74 
77 void GraphCtrl_AddPoint(PTM_GRAPH_CONTROL inst, BYTE val0, BYTE val1);
80 
81 #ifdef __cplusplus
82 }
83 #endif
PBYTE PointBuffer
Definition: graphctl.h:51
BOOL GraphCtrl_Create(PTM_GRAPH_CONTROL inst, HWND hWnd, HWND hParentWnd, PTM_FORMAT fmt)
Definition: graphctl.c:16
COLORREF clrGrid
Definition: graphctl.h:63
INT_PTR CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: graphctl.c:300
Definition: tftpd.h:59
WNDPROC OldGraphCtrlWndProc
Definition: graphctl.c:13
void GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
Definition: graphctl.c:114
UINT32 NumberOfPoints
Definition: graphctl.h:52
COLORREF clrPlot0
Definition: graphctl.h:64
BOOL DrawSecondaryPlot
Definition: graphctl.h:56
static HDC
Definition: imagelist.c:92
#define CALLBACK
Definition: compat.h:35
HWND hWnd
Definition: settings.c:17
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:64
int32_t INT
Definition: typedefs.h:58
struct _TM_FORMAT * PTM_FORMAT
WPARAM wParam
Definition: combotst.c:138
void GraphCtrl_AddPoint(PTM_GRAPH_CONTROL inst, BYTE val0, BYTE val1)
Definition: graphctl.c:139
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
HBRUSH hBrushBack
Definition: graphctl.h:43
void GraphCtrl_RedrawOnHeightChange(PTM_GRAPH_CONTROL inst, INT nh)
Definition: graphctl.c:276
unsigned int UINT32
unsigned int BOOL
Definition: ntddk_ex.h:94
COLORREF clrPlot1
Definition: graphctl.h:65
LONG_PTR LPARAM
Definition: windef.h:208
BOOL DrawSecondaryPlot
Definition: graphctl.h:68
FLOAT ftPixelsPerPercent
Definition: graphctl.h:55
DWORD COLORREF
Definition: windef.h:300
struct _TM_GRAPH_CONTROL TM_GRAPH_CONTROL
COLORREF clrBack
Definition: graphctl.h:62
UINT32 CurrIndex
Definition: graphctl.h:53
struct _TM_FORMAT TM_FORMAT
unsigned char BYTE
Definition: xxhash.c:193
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2886
INT GridCellWidth
Definition: graphctl.h:66
struct _TM_GRAPH_CONTROL * PTM_GRAPH_CONTROL
void GraphCtrl_RedrawBitmap(PTM_GRAPH_CONTROL inst, INT h)
Definition: graphctl.c:209
unsigned int UINT
Definition: ndis.h:50
INT GridCellHeight
Definition: graphctl.h:67
float FLOAT
Definition: typedefs.h:69
static HBITMAP
Definition: button.c:44
HBITMAP hbmGraph
Definition: graphctl.h:39
BYTE * PBYTE
Definition: pedump.c:66
LPARAM lParam
Definition: combotst.c:139
Definition: dsound.c:943