forked from irwir/eMule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathListViewWalkerPropertySheet.h
52 lines (40 loc) · 1.34 KB
/
ListViewWalkerPropertySheet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include "ResizableLib/ResizableSheet.h"
#include "ListCtrlItemWalk.h"
class CListViewPropertySheet : public CResizableSheet
{
DECLARE_DYNAMIC(CListViewPropertySheet)
public:
CListViewPropertySheet() {}
CListViewPropertySheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CListViewPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
virtual ~CListViewPropertySheet();
CPtrArray& GetPages() { return m_pages; }
const CSimpleArray<CObject*> &GetItems() const { return m_aItems; }
void InsertPage(int iIndex, CPropertyPage* pPage);
protected:
CSimpleArray<CObject*> m_aItems;
void ChangedData();
DECLARE_MESSAGE_MAP()
};
// CListViewWalkerPropertySheet
class CListViewWalkerPropertySheet : public CListViewPropertySheet
{
DECLARE_DYNAMIC(CListViewWalkerPropertySheet)
public:
CListViewWalkerPropertySheet(CListCtrlItemWalk* pListCtrl)
{
m_pListCtrl = pListCtrl;
}
CListViewWalkerPropertySheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CListViewWalkerPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
virtual ~CListViewWalkerPropertySheet();
protected:
CListCtrlItemWalk* m_pListCtrl;
CButton m_ctlPrev;
CButton m_ctlNext;
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
afx_msg void OnNext();
afx_msg void OnPrev();
};