[TASKMGR] Make performance graph grid scroll (#3581)

The grids are now rolling along with performance graphs.
This commit is contained in:
Wu Haotian 2021-04-04 04:04:06 +08:00 committed by Stanislav Motylkov
parent a4ab9a1e19
commit 0ed04e3640
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92
2 changed files with 72 additions and 25 deletions

View file

@ -60,10 +60,13 @@ typedef struct
/* those were protected fields */
int m_nHalfShiftPixels;
int m_nPlotShiftPixels;
int m_nGridOffsetPixels;
int m_nClientHeight;
int m_nClientWidth;
int m_nPlotHeight;
int m_nPlotWidth;
int m_nGridXPixels;
int m_nGridYPixels;
double m_dLowerLimit; /* lower bounds */
double m_dUpperLimit; /* upper bounds */
@ -92,6 +95,7 @@ void GraphCtrl_Create(TGraphCtrl* this, HWND hWnd, HWND hParentWnd,
UINT nID);
void GraphCtrl_Dispose(TGraphCtrl* this);
void GraphCtrl_DrawPoint(TGraphCtrl* this);
void GraphCtrl_ShiftGrid(TGraphCtrl* this);
void GraphCtrl_InvalidateCtrl(TGraphCtrl* this, BOOL bResize);
void GraphCtrl_Paint(TGraphCtrl* this, HWND hWnd, HDC dc);
void GraphCtrl_Reset(TGraphCtrl* this);