ReactOS 0.4.16-dev-319-g6cf4263
graphctl.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Task Manager
3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4 * PURPOSE: Graph Plotting controls.
5 * COPYRIGHT: Copyright 2002 Robert Dickenson <robd@reactos.org>
6 * Copyright 2021 Wu Haotian <rigoligo03@gmail.com>
7 * Copyright 2021 Valerij Zaporogeci <vlrzprgts@gmail.com>
8 */
9
10#pragma once
11
12#define NUM_PLOTS 2
13#define PLOT_SHIFT 2
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19typedef struct _TM_GRAPH_CONTROL
20{
26 HPEN hPen0;
27 HPEN hPen1;
28 HBRUSH hBrushBack;
29
35
39
42}
44
45typedef struct _TM_FORMAT
46{
54}
56
59
62void GraphCtrl_AddPoint(PTM_GRAPH_CONTROL inst, BYTE val0, BYTE val1);
65
66#ifdef __cplusplus
67}
68#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:14
void GraphCtrl_AddPoint(PTM_GRAPH_CONTROL inst, BYTE val0, BYTE val1)
Definition: graphctl.c:140
BOOL GraphCtrl_Create(PTM_GRAPH_CONTROL inst, HWND hWnd, HWND hParentWnd, PTM_FORMAT fmt)
Definition: graphctl.c:17
struct _TM_FORMAT TM_FORMAT
void GraphCtrl_RedrawBitmap(PTM_GRAPH_CONTROL inst, INT h)
Definition: graphctl.c:210
void GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
Definition: graphctl.c:115
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:301
struct _TM_GRAPH_CONTROL TM_GRAPH_CONTROL
void GraphCtrl_RedrawOnHeightChange(PTM_GRAPH_CONTROL inst, INT nh)
Definition: graphctl.c:277
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:88
unsigned int UINT
Definition: ndis.h:50
BYTE * PBYTE
Definition: pedump.c:66
COLORREF clrPlot0
Definition: graphctl.h:49
BOOL DrawSecondaryPlot
Definition: graphctl.h:53
COLORREF clrBack
Definition: graphctl.h:47
COLORREF clrPlot1
Definition: graphctl.h:50
INT GridCellHeight
Definition: graphctl.h:52
INT GridCellWidth
Definition: graphctl.h:51
COLORREF clrGrid
Definition: graphctl.h:48
FLOAT ftPixelsPerPercent
Definition: graphctl.h:40
UINT32 CurrIndex
Definition: graphctl.h:38
BOOL DrawSecondaryPlot
Definition: graphctl.h:41
PBYTE PointBuffer
Definition: graphctl.h:36
HBRUSH hBrushBack
Definition: graphctl.h:28
HBITMAP hbmGraph
Definition: graphctl.h:24
UINT32 NumberOfPoints
Definition: graphctl.h:37
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:2909
unsigned char BYTE
Definition: xxhash.c:193