ReactOS 0.4.15-dev-6042-g2eb6700
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
29extern "C" {
30#endif
31
32
33
34typedef struct _TM_GRAPH_CONTROL
35{
41 HPEN hPen0;
42 HPEN hPen1;
43 HBRUSH hBrushBack;
44
50
54
57}
59
60typedef struct _TM_FORMAT
61{
69}
71
74
77void GraphCtrl_AddPoint(PTM_GRAPH_CONTROL inst, BYTE val0, BYTE val1);
80
81#ifdef __cplusplus
82}
83#endif
unsigned int UINT32
HWND hWnd
Definition: settings.c:17
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
WNDPROC OldGraphCtrlWndProc
Definition: graphctl.c:13
void GraphCtrl_AddPoint(PTM_GRAPH_CONTROL inst, BYTE val0, BYTE val1)
Definition: graphctl.c:139
BOOL GraphCtrl_Create(PTM_GRAPH_CONTROL inst, HWND hWnd, HWND hParentWnd, PTM_FORMAT fmt)
Definition: graphctl.c:16
struct _TM_FORMAT TM_FORMAT
void GraphCtrl_RedrawBitmap(PTM_GRAPH_CONTROL inst, INT h)
Definition: graphctl.c:209
void GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
Definition: graphctl.c:114
struct _TM_FORMAT * PTM_FORMAT
struct _TM_GRAPH_CONTROL * PTM_GRAPH_CONTROL
INT_PTR CALLBACK GraphCtrl_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: graphctl.c:300
struct _TM_GRAPH_CONTROL TM_GRAPH_CONTROL
void GraphCtrl_RedrawOnHeightChange(PTM_GRAPH_CONTROL inst, INT nh)
Definition: graphctl.c:276
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:92
unsigned int UINT
Definition: ndis.h:50
BYTE * PBYTE
Definition: pedump.c:66
COLORREF clrPlot0
Definition: graphctl.h:64
BOOL DrawSecondaryPlot
Definition: graphctl.h:68
COLORREF clrBack
Definition: graphctl.h:62
COLORREF clrPlot1
Definition: graphctl.h:65
INT GridCellHeight
Definition: graphctl.h:67
INT GridCellWidth
Definition: graphctl.h:66
COLORREF clrGrid
Definition: graphctl.h:63
FLOAT ftPixelsPerPercent
Definition: graphctl.h:55
UINT32 CurrIndex
Definition: graphctl.h:53
BOOL DrawSecondaryPlot
Definition: graphctl.h:56
PBYTE PointBuffer
Definition: graphctl.h:51
HBRUSH hBrushBack
Definition: graphctl.h:43
HBITMAP hbmGraph
Definition: graphctl.h:39
UINT32 NumberOfPoints
Definition: graphctl.h:52
Definition: dsound.c:943
Definition: tftpd.h:60
int32_t INT_PTR
Definition: typedefs.h:64
float FLOAT
Definition: typedefs.h:69
int32_t INT
Definition: typedefs.h:58
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
DWORD COLORREF
Definition: windef.h:300
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2896
unsigned char BYTE
Definition: xxhash.c:193