home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / CMNCTRL.PAK / LISTCPG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.3 KB  |  93 lines

  1. // ListCtrlPage.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1995 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CListCtrlPage dialog
  16. #ifndef INC_LISTCTRLPAGE_H
  17. #define INC_LISTCTRLPAGE_H
  18.  
  19. #include "mlistctl.h"
  20. #include "notifwdw.h"
  21.  
  22. class CListCtrlPage : public CPropertyPage
  23. {
  24.     DECLARE_DYNCREATE(CListCtrlPage)
  25.  
  26. // Construction
  27. public:
  28.     CListCtrlPage();
  29.     ~CListCtrlPage();
  30.  
  31. // Dialog Data
  32.     //{{AFX_DATA(CListCtrlPage)
  33.     enum { IDD = IDD_LISTCTRL };
  34.     CMyListCtrl    m_listctrl;
  35.     CNotifyShowCase m_notifshowcase;
  36.     BOOL    m_bAutoArrange;
  37.     BOOL    m_bCallBacks;
  38.     BOOL    m_bEditLabels;
  39.     BOOL    m_bNoColumnHeader;
  40.     BOOL    m_bNoLabelWrap;
  41.     BOOL    m_bNoSortHeader;
  42.     BOOL    m_bSingleSel;
  43.     CString    m_cstrViewMode;
  44.     CString    m_cstrAlignMode;
  45.     CString    m_cstrSort;
  46.     CString    m_cstrStatus;
  47.     //}}AFX_DATA
  48.  
  49.  
  50.     CImageList    *m_pimagelist;
  51.     CImageList    *m_pimagelistSmall;
  52.     CPoint        m_ptHotSpot;
  53.  
  54.  
  55. // Overrides
  56.     // ClassWizard generate virtual function overrides
  57.     //{{AFX_VIRTUAL(CListCtrlPage)
  58.     protected:
  59.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  60.     virtual BOOL OnInitDialog(void);
  61.     //}}AFX_VIRTUAL
  62.  
  63. // Implementation
  64. protected:
  65.  
  66.     void ChangeListCtrlStyle(long lStyle, BOOL bSetBit);
  67.     void FillListCtrl(void);
  68.     void RenewListCtrl(long lStyle, BOOL bSetBit);
  69.     void OnButtonUp(CPoint point);
  70.     void OnButtonDown(CPoint point);
  71.  
  72. public:
  73.  
  74.     // Generated message map functions
  75.     //{{AFX_MSG(CListCtrlPage)
  76.     afx_msg void OnAutoArrange();
  77.     afx_msg void OnSingleSel();
  78.     afx_msg void OnNoLabelWrap();
  79.     afx_msg void OnEditLabels();
  80.     afx_msg void OnNoColumnHeader();
  81.     afx_msg void OnNoSortHeader();
  82.     afx_msg void OnChangeViewMode();
  83.     afx_msg void OnChangeAlignMode();
  84.     afx_msg void OnChangeSortMode();
  85.     afx_msg void ShowNotification(LPNMHDR pnmhdr, LRESULT *plResult);
  86.     //}}AFX_MSG
  87.     DECLARE_MESSAGE_MAP()
  88. //    afx_msg void OnBeginDrag(LPNMHDR pnmhdr, LRESULT *pResult);
  89. };
  90.  
  91.  
  92. #endif
  93.