OSDN Git Service

Remove the copyright notice and code to handle it. Modify the layout
[xkeymacs/xkeymacs.git] / xkeymacs / propertieslist.h
1 #if !defined(AFX_PROPERTIESLIST_H__0BC352B3_8869_46D9_873B_D65D705F1228__INCLUDED_)\r
2 #define AFX_PROPERTIESLIST_H__0BC352B3_8869_46D9_873B_D65D705F1228__INCLUDED_\r
3 \r
4 #if _MSC_VER > 1000\r
5 #pragma once\r
6 #endif // _MSC_VER > 1000\r
7 \r
8 enum SORT_TYPE { SORT_CATEGORY, SORT_COMMAND, SORT_KEY };\r
9 \r
10 // PropertiesList.h : header file\r
11 //\r
12 \r
13 /////////////////////////////////////////////////////////////////////////////\r
14 // CPropertiesList dialog\r
15 \r
16 class CPropertiesList : public CPropertyPage\r
17 {\r
18         DECLARE_DYNCREATE(CPropertiesList)\r
19 \r
20 // Construction\r
21 public:\r
22         void EnableControl();\r
23         void GetDialogData();\r
24         void SetDialogData();\r
25         CPropertiesList();\r
26         ~CPropertiesList();\r
27 \r
28 // Dialog Data\r
29         //{{AFX_DATA(CPropertiesList)\r
30         enum { IDD = IDD_PROPERTIES_LIST };\r
31         CListCtrl       m_cPropertiesList;\r
32         //}}AFX_DATA\r
33 \r
34 \r
35 // Overrides\r
36         // ClassWizard generate virtual function overrides\r
37         //{{AFX_VIRTUAL(CPropertiesList)\r
38         public:\r
39         virtual BOOL OnSetActive();\r
40         virtual BOOL OnKillActive();\r
41         protected:\r
42         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
43         //}}AFX_VIRTUAL\r
44 \r
45 // Implementation\r
46 protected:\r
47         // Generated message map functions\r
48         //{{AFX_MSG(CPropertiesList)\r
49         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);\r
50         virtual BOOL OnInitDialog();\r
51         afx_msg void OnColumnclickPropertiesList(NMHDR* pNMHDR, LRESULT* pResult);\r
52         //}}AFX_MSG\r
53         DECLARE_MESSAGE_MAP()\r
54 private:\r
55         int m_nKeyWidth;\r
56         int m_nCommandWidth;\r
57         int m_nCategoryWidth;\r
58         static int Sort(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort, SORT_TYPE sortType);\r
59         void InsertItem(LPCTSTR szCategory, LPCTSTR szCommandName, LPCTSTR szKey);\r
60         void SortItem(int nColumn);\r
61         void DisplayIndicator();\r
62         static BOOL m_bSortAscending;\r
63         int m_nSelectedColumn;\r
64         static int CALLBACK SortKey(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);\r
65         static int CALLBACK SortCommand(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);\r
66         static int CALLBACK SortCategory(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);\r
67         CProperties* m_pProperties;\r
68 };\r
69 \r
70 //{{AFX_INSERT_LOCATION}}\r
71 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
72 \r
73 #endif // !defined(AFX_PROPERTIESLIST_H__0BC352B3_8869_46D9_873B_D65D705F1228__INCLUDED_)\r