OSDN Git Service

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