#include "precomp.h"
#include <math.h>
Go to the source code of this file.
|
BOOL | GraphCtrl_Create (PTM_GRAPH_CONTROL inst, HWND hWnd, HWND hParentWnd, PTM_FORMAT fmt) |
|
void | GraphCtrl_Dispose (PTM_GRAPH_CONTROL inst) |
|
void | GraphCtrl_AddPoint (PTM_GRAPH_CONTROL inst, BYTE val0, BYTE val1) |
|
void | GraphCtrl_RedrawBitmap (PTM_GRAPH_CONTROL inst, INT h) |
|
void | GraphCtrl_RedrawOnHeightChange (PTM_GRAPH_CONTROL inst, INT nh) |
|
INT_PTR CALLBACK | GraphCtrl_WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
|
◆ GraphCtrl_AddPoint()
Definition at line 139 of file graphctl.c.
140{
144
145 UINT Prev0, Prev1, RetainingWidth;
146 INT PrevY, CurrY,
p,
v;
147
154 {
156 }
157 else
158 {
160 }
163
164
166
167 rcDirt.
left = RetainingWidth;
172
175 p < inst->BitmapHeight;
177 {
180 }
183 {
188 }
190
192 {
194
199 }
200
206}
static VOID NTAPI BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI MoveToEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
Referenced by PerformancePageRefreshThread().
◆ GraphCtrl_Create()
Definition at line 16 of file graphctl.c.
17{
23
26
32 {
33 goto fail;
34 }
35
38
39
44
49 {
50 goto fail;
51 }
52
55 else
59 else
61
63
67
72
74 !hdcg ||
76 {
77 goto fail;
78 }
79
83
87
91 p < inst->BitmapHeight;
93 {
96 }
100 {
103 }
105
107
108fail:
111}
void GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
COLORREF WINAPI SetBkColor(_In_ HDC, _In_ COLORREF)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HDC WINAPI GetDC(_In_opt_ HWND)
int WINAPI GetSystemMetrics(_In_ int)
Referenced by PerformancePageWndProc().
◆ GraphCtrl_Dispose()
◆ GraphCtrl_RedrawBitmap()
Definition at line 209 of file graphctl.c.
210{
216
221
223
225 p < inst->BitmapHeight;
227 {
230 }
231
235 {
238 }
239
241
243 {
248 y =
h - *(
t +
j) * coef;
251 {
253 y =
h - *(
t +
j) * coef;
256 }
257 }
258
263 y =
h - *(
t +
j) * coef;
265
267 {
269 y =
h - *(
t +
j) * coef;
272 }
273}
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
Referenced by GraphCtrl_RedrawOnHeightChange(), and PerformancePage_OnViewShowKernelTimes().
◆ GraphCtrl_RedrawOnHeightChange()
◆ GraphCtrl_WndProc()
Definition at line 300 of file graphctl.c.
301{
303
305 {
308
309
310
311
323
331
332
337
338
339
343
344
345
360 return 0;
361
363 return 0;
364
366 {
371 else
372 return 0;
373
375 {
377 }
379
380 return 0;
381 }
382
384 {
388
393 else
394 return 0;
395
403 0,
406 return 0;
407 }
408 }
409
410
411
412
414}
HWND hPerformancePageMemUsageHistoryGraph
HWND hPerformancePageCpuUsageHistoryGraph
WNDPROC OldGraphCtrlWndProc
TM_GRAPH_CONTROL PerformancePageMemUsageHistoryGraph
TM_GRAPH_CONTROL PerformancePageCpuUsageHistoryGraph
void GraphCtrl_RedrawOnHeightChange(PTM_GRAPH_CONTROL inst, INT nh)
#define WM_CAPTURECHANGED
#define WM_NCRBUTTONDBLCLK
#define WM_NCLBUTTONDBLCLK
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
#define WM_NCMBUTTONDBLCLK
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
LRESULT WINAPI CallWindowProcW(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by PerformancePageWndProc().
◆ hPerformancePageCpuUsageHistoryGraph
HWND hPerformancePageCpuUsageHistoryGraph |
|
extern |
◆ hPerformancePageMemUsageHistoryGraph
HWND hPerformancePageMemUsageHistoryGraph |
|
extern |
◆ OldGraphCtrlWndProc
◆ PerformancePageCpuUsageHistoryGraph
◆ PerformancePageMemUsageHistoryGraph