ListPage.h
上传用户:cuijiu615
上传日期:2007-03-28
资源大小:45k
文件大小:1k
- #if !defined(AFX_LISTPAGE_H__2F395F42_8F71_4802_B8D5_1693966BA132__INCLUDED_)
- #define AFX_LISTPAGE_H__2F395F42_8F71_4802_B8D5_1693966BA132__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ListPage.h : header file
- //
- #include "MyRecordset.h"
- /////////////////////////////////////////////////////////////////////////////
- // ListPage dialog
- class ListPage : public CPropertyPage
- {
- DECLARE_DYNCREATE(ListPage)
- // Construction
- public:
- void AddDataIntoCtrl();
- ListPage();
- ~ListPage();
- // Dialog Data
- //{{AFX_DATA(ListPage)
- enum { IDD = IDD_LIST };
- CListCtrl m_list;
- //}}AFX_DATA
- CRecordset* m_pSet;
- CDatabase* m_database;
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(ListPage)
- public:
- virtual BOOL OnSetActive();
- virtual BOOL DestroyWindow();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- // Generated message map functions
- //{{AFX_MSG(ListPage)
- virtual BOOL OnInitDialog();
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CBrush m_brush;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_LISTPAGE_H__2F395F42_8F71_4802_B8D5_1693966BA132__INCLUDED_)