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

对话框与窗口

开发平台:

Visual C++

  1. // ListBoxSampleView.h : interface of the CListBoxSampleView class
  2. //
  3. // This file is a part of the XTREME TOOLKIT PRO MFC class library.
  4. // (c)1998-2008 Codejock Software, All Rights Reserved.
  5. //
  6. // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
  7. // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
  8. // CONSENT OF CODEJOCK SOFTWARE.
  9. //
  10. // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
  11. // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
  12. // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
  13. // SINGLE COMPUTER.
  14. //
  15. // CONTACT INFORMATION:
  16. // support@codejock.com
  17. // http://www.codejock.com
  18. //
  19. /////////////////////////////////////////////////////////////////////////////
  20. #if !defined(AFX_LISTBOXSAMPLEVIEW_H__2E66D584_07E4_4F62_BA0B_62EA6AD029FF__INCLUDED_)
  21. #define AFX_LISTBOXSAMPLEVIEW_H__2E66D584_07E4_4F62_BA0B_62EA6AD029FF__INCLUDED_
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. class CXTPControlStatic;
  26. class CXTPControlListBox;
  27. class CListBoxSampleView : public CEditView
  28. {
  29. protected: // create from serialization only
  30. CListBoxSampleView();
  31. DECLARE_DYNCREATE(CListBoxSampleView)
  32. // Attributes
  33. public:
  34. CListBoxSampleDoc* GetDocument();
  35. // Operations
  36. public:
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CListBoxSampleView)
  40. public:
  41. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  42. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  43. protected:
  44. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  45. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  46. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  47. //}}AFX_VIRTUAL
  48. CXTPControlStatic* FindInfoControl(CXTPControlListBox* pControlListBox);
  49. afx_msg void OnEditUndo(NMHDR* pNMHDR, LRESULT* pResult);
  50. afx_msg void OnListBoxControlSelChange(NMHDR* pNMHDR, LRESULT* pRes);
  51. afx_msg void OnListBoxControlPoup(NMHDR* pNMHDR, LRESULT* pRes);
  52. // Implementation
  53. public:
  54. virtual ~CListBoxSampleView();
  55. #ifdef _DEBUG
  56. virtual void AssertValid() const;
  57. virtual void Dump(CDumpContext& dc) const;
  58. #endif
  59. protected:
  60. // Generated message map functions
  61. protected:
  62. //{{AFX_MSG(CListBoxSampleView)
  63. // NOTE - the ClassWizard will add and remove member functions here.
  64. //    DO NOT EDIT what you see in these blocks of generated code !
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. };
  68. #ifndef _DEBUG  // debug version in ListBoxSampleView.cpp
  69. inline CListBoxSampleDoc* CListBoxSampleView::GetDocument()
  70. { return (CListBoxSampleDoc*)m_pDocument; }
  71. #endif
  72. /////////////////////////////////////////////////////////////////////////////
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  75. #endif // !defined(AFX_LISTBOXSAMPLEVIEW_H__2E66D584_07E4_4F62_BA0B_62EA6AD029FF__INCLUDED_)