| 15 | |
| 16 | |
| 17 | class CBigPoolView : |
| 18 | public CWindowImpl<CBigPoolView, CListViewCtrl>, |
| 19 | public CCustomDraw<CBigPoolView>, |
| 20 | public CIdleHandler, |
| 21 | public IView { |
| 22 | public: |
| 23 | enum ColumnType { |
| 24 | TagName, |
| 25 | VirtualAddress, |
| 26 | NonPaged, |
| 27 | Size, |
| 28 | SourceName, |
| 29 | SourceDescription, |
| 30 | NumColumns |
| 31 | }; |
| 32 | |
| 33 | DECLARE_WND_SUPERCLASS(nullptr,CListViewCtrl::GetWndClassName()) |
| 34 | |
| 35 | CBigPoolView(IMainFrame* pFrame):m_pFrame(pFrame){} |
| 36 | |
| 37 | void LoadPoolTagText(); |
| 38 | void UpdateBigPools(); |
| 39 | void AddTag(const SYSTEM_BIGPOOL_ENTRY& info, int index); |
| 40 | void UpdateVisible(); |
| 41 | bool CompareItems(const BigPoolItem& i1, const BigPoolItem& i2); |
| 42 | void DoSort(); |
| 43 | void SetToolBar(HWND hWnd); |
| 44 | |
| 45 | void AddCellColor(CellColor& cell, DWORD64 targetTime = 0); |
| 46 | void RemoveCellColor(const CellColorKey& cell); |
| 47 | int GetChange(const SYSTEM_BIGPOOL_ENTRY& info, const SYSTEM_BIGPOOL_ENTRY& newinfo, ColumnType type) const; |
| 48 | |
| 49 | size_t GetTotalPaged() const { |
| 50 | return m_TotalPaged; |
| 51 | } |
| 52 | |
| 53 | size_t GetTotalNonPaged() const { |
| 54 | return m_TotalNonPaged; |
| 55 | } |
| 56 | |
| 57 | BOOL PreTranslateMessage(MSG* pMsg); |
| 58 | |
| 59 | // CCustomDraw |
| 60 | DWORD OnPrePaint(int id, LPNMCUSTOMDRAW cd); |
| 61 | DWORD OnItemPrePaint(int id, LPNMCUSTOMDRAW cd); |
| 62 | DWORD OnSubItemPrePaint(int id, LPNMCUSTOMDRAW cd); |
| 63 | |
| 64 | BOOL OnIdle() override; |
| 65 | |
| 66 | // IView |
| 67 | bool IsFindSupported() const override { |
| 68 | return true; |
| 69 | } |
| 70 | void DoFind(const CString& text, DWORD flags) override; |
| 71 | |
| 72 | BEGIN_MSG_MAP(CBigPoolView) |
| 73 | MESSAGE_HANDLER(WM_TIMER, OnTimer) |
| 74 | MESSAGE_HANDLER(WM_CREATE, OnCreate) |
nothing calls this directly
no outgoing calls
no test coverage detected