home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / listhdr / lhdrdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.3 KB  |  88 lines

  1. // LHdrDlg.h : header file
  2. //
  3.  
  4. #if !defined(AFX_ListHdrDLG_H__31281828_D350_11D0_8286_00C04FD73634__INCLUDED_)
  5. #define AFX_ListHdrDLG_H__31281828_D350_11D0_8286_00C04FD73634__INCLUDED_
  6.  
  7. #if _MSC_VER >= 1000
  8. #pragma once
  9. #endif // _MSC_VER >= 1000
  10.  
  11. #include "mlistctl.h"
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CListHdrDlg dialog
  15.  
  16. class CListHdrDlg : public CDialog
  17. {
  18. // Construction
  19. public:
  20.     CListHdrDlg(CWnd* pParent = NULL);  // standard constructor
  21.     ~CListHdrDlg();
  22.  
  23. // Dialog Data
  24.     //{{AFX_DATA(CListHdrDlg)
  25.     enum { IDD = IDD_LISTHDR_DIALOG };
  26. //  CListCtrl   m_listctrl;
  27.     CMyListCtrl m_listctrl;
  28.     BOOL    m_bNoLabelWrap;
  29.     BOOL    m_bAutoArrange;
  30.     BOOL    m_bSingleSel;
  31.     BOOL    m_bEditLabels;
  32.     BOOL    m_bNoColHdr;
  33.     BOOL    m_bNoSortHdr;
  34.     CString m_strViewMode;
  35.     CString m_strAlignMode;
  36.     CString m_strSortMode;
  37.     BOOL    m_bHoverSelect;
  38.     BOOL    m_bWorkAreas;
  39.     //}}AFX_DATA
  40.  
  41.     // ClassWizard generated virtual function overrides
  42.     //{{AFX_VIRTUAL(CListHdrDlg)
  43.     protected:
  44.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  45.     //}}AFX_VIRTUAL
  46.  
  47. // Implementation
  48. protected:
  49.     CImageList * m_pImageHdrSmall;
  50.     CImageList * m_pImageList;
  51.     CImageList * m_pImageListSmall;
  52.     void ModifyHeaderItems();
  53.     void FillListCtrl();
  54.     void RenewListCtrl(DWORD dwStyle, BOOL bSetBits);
  55.     void ChangeListCtrlStyle(DWORD dwStyle, BOOL bSetBits);
  56.     BOOL m_bHotCursor;
  57.     HCURSOR m_hStdHotCursor;
  58.     HCURSOR m_hMyHotCursor;
  59.     HICON m_hIcon;
  60.  
  61.     // Generated message map functions
  62.     //{{AFX_MSG(CListHdrDlg)
  63.     virtual BOOL OnInitDialog();
  64.     afx_msg void OnPaint();
  65.     afx_msg HCURSOR OnQueryDragIcon();
  66.     afx_msg void OnNoLabelWrap();
  67.     afx_msg void OnAutoArrange();
  68.     afx_msg void OnEditLabels();
  69.     afx_msg void OnNoColHdr();
  70.     afx_msg void OnNoSortHdr();
  71.     afx_msg void OnSingleSel();
  72.     afx_msg void OnChangeAlign();
  73.     afx_msg void OnChangeView();
  74.     afx_msg void OnHover();
  75.     afx_msg void OnMyHotCur();
  76.     afx_msg void OnChangeSort();
  77.     afx_msg void OnWorkAreas();
  78.     afx_msg void OnStdHotCur();
  79.     afx_msg void OnAbout();
  80.     //}}AFX_MSG
  81.     DECLARE_MESSAGE_MAP()
  82. };
  83.  
  84. //{{AFX_INSERT_LOCATION}}
  85. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  86.  
  87. #endif // !defined(AFX_ListHdrDLG_H__31281828_D350_11D0_8286_00C04FD73634__INCLUDED_)
  88.