ReactOS 0.4.16-dev-320-g3bd9ddc
graph.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BRIGHT_GREEN   RGB(0, 255, 0)
 
#define MEDIUM_GREEN   RGB(0, 190, 0)
 
#define DARK_GREEN   RGB(0, 130, 0)
 
#define RED   RGB(255, 0, 0)
 

Functions

INT_PTR CALLBACK Graph_WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 

Variables

WNDPROC OldGraphWndProc
 

Macro Definition Documentation

◆ BRIGHT_GREEN

#define BRIGHT_GREEN   RGB(0, 255, 0)

Definition at line 15 of file graph.h.

◆ DARK_GREEN

#define DARK_GREEN   RGB(0, 130, 0)

Definition at line 17 of file graph.h.

◆ MEDIUM_GREEN

#define MEDIUM_GREEN   RGB(0, 190, 0)

Definition at line 16 of file graph.h.

◆ RED

#define RED   RGB(255, 0, 0)

Definition at line 18 of file graph.h.

Function Documentation

◆ Graph_WndProc()

INT_PTR CALLBACK Graph_WndProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 19 of file graph.c.

20{
21 HDC hdc;
22 PAINTSTRUCT ps;
23 LONG WindowId;
24
25 switch (message)
26 {
27 case WM_ERASEBKGND:
28 return TRUE;
29
30 /*
31 * Filter out mouse & keyboard messages
32 */
33 /* case WM_APPCOMMAND: */
36 case WM_LBUTTONDOWN:
37 case WM_LBUTTONUP:
39 case WM_MBUTTONDOWN:
40 case WM_MBUTTONUP:
42 case WM_MOUSEHOVER:
43 case WM_MOUSELEAVE:
44 case WM_MOUSEMOVE:
45 /* case WM_MOUSEWHEEL: */
46 case WM_NCHITTEST:
49 case WM_NCLBUTTONUP:
52 case WM_NCMBUTTONUP:
53 /* case WM_NCMOUSEHOVER: */
54 /* case WM_NCMOUSELEAVE: */
55 case WM_NCMOUSEMOVE:
58 case WM_NCRBUTTONUP:
59 /* case WM_NCXBUTTONDBLCLK: */
60 /* case WM_NCXBUTTONDOWN: */
61 /* case WM_NCXBUTTONUP: */
63 case WM_RBUTTONDOWN:
64 case WM_RBUTTONUP:
65 /* case WM_XBUTTONDBLCLK: */
66 /* case WM_XBUTTONDOWN: */
67 /* case WM_XBUTTONUP: */
68 case WM_ACTIVATE:
69 case WM_CHAR:
70 case WM_DEADCHAR:
71 case WM_GETHOTKEY:
72 case WM_HOTKEY:
73 case WM_KEYDOWN:
74 case WM_KEYUP:
75 case WM_KILLFOCUS:
76 case WM_SETFOCUS:
77 case WM_SETHOTKEY:
78 case WM_SYSCHAR:
79 case WM_SYSDEADCHAR:
80 case WM_SYSKEYDOWN:
81 case WM_SYSKEYUP:
82
83 case WM_NCCALCSIZE:
84 return 0;
85
86 case WM_PAINT:
87 hdc = BeginPaint(hWnd, &ps);
88
89 WindowId = GetWindowLongPtrW(hWnd, GWLP_ID);
90
91 switch (WindowId)
92 {
95 break;
98 break;
101 break;
102 }
103
104 EndPaint(hWnd, &ps);
105 return 0;
106 }
107
108 /*
109 * Pass on all non-handled messages
110 */
112}
HWND hWnd
Definition: settings.c:17
#define IDC_MEM_USAGE_HISTORY_GRAPH
Definition: resource.h:125
#define IDC_MEM_USAGE_GRAPH
Definition: resource.h:123
#define IDC_CPU_USAGE_GRAPH
Definition: resource.h:119
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define TRUE
Definition: types.h:120
void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
Definition: graph.c:278
void Graph_DrawMemUsageHistoryGraph(HDC hDC, HWND hWnd)
Definition: graph.c:384
void Graph_DrawCpuUsageGraph(HDC hDC, HWND hWnd)
Definition: graph.c:114
WNDPROC OldGraphWndProc
Definition: graph.c:12
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:88
long LONG
Definition: pedump.c:60
#define WM_MOUSELEAVE
Definition: commctrl.h:4980
#define WM_MOUSEHOVER
Definition: commctrl.h:4979
Definition: tftpd.h:60
#define WM_PAINT
Definition: winuser.h:1623
#define WM_ERASEBKGND
Definition: winuser.h:1628
#define WM_GETHOTKEY
Definition: winuser.h:1656
#define GetWindowLongPtrW
Definition: winuser.h:4832
#define WM_KEYUP
Definition: winuser.h:1719
#define WM_SETHOTKEY
Definition: winuser.h:1655
#define WM_CAPTURECHANGED
Definition: winuser.h:1811
#define WM_LBUTTONDBLCLK
Definition: winuser.h:1781
#define WM_NCHITTEST
Definition: winuser.h:1689
#define WM_RBUTTONUP
Definition: winuser.h:1783
#define WM_NCRBUTTONDBLCLK
Definition: winuser.h:1700
#define WM_RBUTTONDBLCLK
Definition: winuser.h:1784
#define WM_SETFOCUS
Definition: winuser.h:1616
#define WM_MOUSEMOVE
Definition: winuser.h:1778
#define WM_NCMBUTTONUP
Definition: winuser.h:1702
#define WM_LBUTTONDOWN
Definition: winuser.h:1779
#define WM_NCLBUTTONDBLCLK
Definition: winuser.h:1697
#define WM_ACTIVATE
Definition: winuser.h:1615
#define WM_RBUTTONDOWN
Definition: winuser.h:1782
#define WM_NCMOUSEMOVE
Definition: winuser.h:1694
#define WM_SYSCHAR
Definition: winuser.h:1724
#define WM_SYSDEADCHAR
Definition: winuser.h:1725
#define WM_NCMBUTTONDOWN
Definition: winuser.h:1701
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
#define WM_MBUTTONDBLCLK
Definition: winuser.h:1787
#define WM_SYSKEYUP
Definition: winuser.h:1723
#define WM_MOUSEACTIVATE
Definition: winuser.h:1640
#define WM_LBUTTONUP
Definition: winuser.h:1780
#define WM_CHAR
Definition: winuser.h:1720
#define WM_NCLBUTTONUP
Definition: winuser.h:1696
#define GWLP_ID
Definition: winuser.h:863
#define WM_HOTKEY
Definition: winuser.h:1882
#define WM_NCRBUTTONUP
Definition: winuser.h:1699
#define WM_KEYDOWN
Definition: winuser.h:1718
#define WM_NCMBUTTONDBLCLK
Definition: winuser.h:1703
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_NCCALCSIZE
Definition: winuser.h:1688
#define WM_MBUTTONUP
Definition: winuser.h:1786
#define WM_DEADCHAR
Definition: winuser.h:1721
#define WM_KILLFOCUS
Definition: winuser.h:1617
#define WM_SYSKEYDOWN
Definition: winuser.h:1722
#define WM_NCLBUTTONDOWN
Definition: winuser.h:1695
#define WM_MBUTTONDOWN
Definition: winuser.h:1785
#define WM_NCRBUTTONDOWN
Definition: winuser.h:1698

Referenced by PerformancePageWndProc().

Variable Documentation

◆ OldGraphWndProc

WNDPROC OldGraphWndProc
extern

Definition at line 12 of file graph.c.

Referenced by Graph_WndProc(), and PerformancePageWndProc().