// GridCustomHeapView.h // // (c)1998-2025 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN // CONSENT OF CODEJOCK SOFTWARE. // // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A // SINGLE COMPUTER. // // CONTACT INFORMATION: // support@codejock.com // http://www.codejock.com // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_GRIDCUSTOMHEAPVIEW_H__66197631_84DB_475D_BDBC_D43A20168066__INCLUDED_) # define AFX_GRIDCUSTOMHEAPVIEW_H__66197631_84DB_475D_BDBC_D43A20168066__INCLUDED_ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 class CGridCustomHeapView : public CXTPGridView { protected: // create from serialization only CGridCustomHeapView(); DECLARE_DYNCREATE(CGridCustomHeapView) // Attributes public: CGridCustomHeapDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CGridCustomHeapView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~CGridCustomHeapView(); # ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; # endif protected: void AddRecords(int nCountToAdd); void AddRecord(int nState, LPCTSTR pcszText, double dNumber, const COleDateTime& dtDate, const COleVariant& varVariant, XTPGridCheckState checkState); void UpdateTitle(DWORD dwAddTime, DWORD dwPopulateTime); void BatchAddRecords(int nCountToAdd); // Generated message map functions protected: //{{AFX_MSG(CGridCustomHeapView) afx_msg void OnAdd10kRecords(); afx_msg void OnAdd20kRecords(); afx_msg void OnBatchAdd10kRecords(); afx_msg void OnBatchAdd20kRecords(); afx_msg void OnRemoveAllRecords(); afx_msg void OnViewPreviewMode(); afx_msg void OnUpdateViewPreviewMode(CCmdUI* pCmdUI); afx_msg void OnRemoveHalfRecords(); afx_msg void OnFreeExtraBatchData(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; # ifndef _DEBUG // debug version in GridCustomHeapView.cpp inline CGridCustomHeapDoc* CGridCustomHeapView::GetDocument() { return (CGridCustomHeapDoc*)m_pDocument; } # endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_GRIDCUSTOMHEAPVIEW_H__66197631_84DB_475D_BDBC_D43A20168066__INCLUDED_)