#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 140 of file graphctl.c.
141{
145
146 UINT Prev0, Prev1, RetainingWidth;
147 INT PrevY, CurrY,
p,
v;
148
155 {
157 }
158 else
159 {
161 }
164
165
167
168 rcDirt.
left = RetainingWidth;
173
176 p < inst->BitmapHeight;
178 {
181 }
184 {
189 }
191
193 {
195
200 }
201
207}
static VOID 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 17 of file graphctl.c.
18{
24
27
33 {
34 goto fail;
35 }
36
39
40
45
50 {
51 goto fail;
52 }
53
56 else
60 else
62
64
68
73
75 !hdcg ||
77 {
78 goto fail;
79 }
80
84
88
92 p < inst->BitmapHeight;
94 {
97 }
101 {
104 }
106
108
109fail:
112}
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 210 of file graphctl.c.
211{
217
222
224
226 p < inst->BitmapHeight;
228 {
231 }
232
236 {
239 }
240
242
244 {
249 y =
h - *(
t +
j) * coef;
252 {
254 y =
h - *(
t +
j) * coef;
257 }
258 }
259
264 y =
h - *(
t +
j) * coef;
266
268 {
270 y =
h - *(
t +
j) * coef;
273 }
274}
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 301 of file graphctl.c.
302{
304
306 {
309
310
311
312
324
332
333
338
339
340
344
345
346
361 return 0;
362
364 return 0;
365
367 {
372 else
373 return 0;
374
376 {
378 }
380
381 return 0;
382 }
383
385 {
389
394 else
395 return 0;
396
404 0,
407 return 0;
408 }
409 }
410
411
412
413
415}
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