ReportControl.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:1k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // ReportControl.h: interface for the CReportControl class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_REPORTCONTROL_H__7361D7E3_7483_4EAC_BDC2_15CA2BC0F49B__INCLUDED_)
  5. #define AFX_REPORTCONTROL_H__7361D7E3_7483_4EAC_BDC2_15CA2BC0F49B__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #define WM_ADD_RECORD_EX (WM_USER + 1)
  10. class CReportControl : public CXTPReportControl  
  11. {
  12. public:
  13. CReportControl();
  14. virtual ~CReportControl();
  15. // Attributes
  16. public:
  17. protected:
  18. CXTPReportRecord* m_pFocusedRecord;
  19. CXTPReportRow* m_pTopRow;
  20. // Operations
  21. public:
  22. void DeleteSelectedRows();
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CReportControl)
  26. //}}AFX_VIRTUAL
  27. // Implementation
  28. public:
  29. virtual BOOL OnFocusChanging(CXTPReportRow* pNewRow, CXTPReportColumn* pNewCol);
  30. // Generated message map functions
  31. protected:
  32. //{{AFX_MSG(CReportControl)
  33. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  34. //}}AFX_MSG
  35. afx_msg LRESULT OnAddRecordEx(WPARAM wParam, LPARAM lParam);
  36. DECLARE_MESSAGE_MAP()
  37. };
  38. #endif // !defined(AFX_REPORTCONTROL_H__7361D7E3_7483_4EAC_BDC2_15CA2BC0F49B__INCLUDED_)