OSDN Git Service

Remove typedef of Translate_t and the declaration of struct
[xkeymacs/xkeymacs.git] / xkeymacs / key.h
1 #if !defined(AFX_KEY_H__509440FD_B54D_4C17_AAA1_C394820F4FB6__INCLUDED_)\r
2 #define AFX_KEY_H__509440FD_B54D_4C17_AAA1_C394820F4FB6__INCLUDED_\r
3 \r
4 #include "Profile.h"    // Added by ClassView\r
5 #if _MSC_VER > 1000\r
6 #pragma once\r
7 #endif // _MSC_VER > 1000\r
8 // Key.h : header file\r
9 //\r
10 \r
11 /////////////////////////////////////////////////////////////////////////////\r
12 // CKey window\r
13 \r
14 enum KEY_TYPE { NORMAL_KEY, PUSHED_KEY, DROPPABLE_KEY, ORIGINAL_KEY, REMAPPED_KEY, REMAPPED_PUSHED_KEY };\r
15 \r
16 class CKey : public CButton\r
17 {\r
18 // Construction\r
19 public:\r
20         CKey(int nKey = 0, int nKeyType = NORMAL_KEY, HKEY_TYPE hkeyType = CURRENT_USER);\r
21 \r
22 // Attributes\r
23 public:\r
24 \r
25 // Operations\r
26 public:\r
27 \r
28 // Overrides\r
29         // ClassWizard generated virtual function overrides\r
30         //{{AFX_VIRTUAL(CKey)\r
31         public:\r
32         virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);\r
33         //}}AFX_VIRTUAL\r
34 \r
35 // Implementation\r
36 public:\r
37         int GetKeyType();\r
38         void SetKeyType(int nKeyType);\r
39         virtual ~CKey();\r
40 \r
41         // Generated message map functions\r
42 protected:\r
43         //{{AFX_MSG(CKey)\r
44         afx_msg void OnLButtonDown(UINT nFlags, CPoint point);\r
45         afx_msg void OnLButtonUp(UINT nFlags, CPoint point);\r
46         afx_msg void OnMouseMove(UINT nFlags, CPoint point);\r
47         //}}AFX_MSG\r
48 \r
49         DECLARE_MESSAGE_MAP()\r
50 private:\r
51         BOOL IsDroppableKey(int nKey);\r
52         int m_nDroppableKeyType;\r
53         int m_nDroppableKey;\r
54         int m_nKey;\r
55         int m_nKeyType;\r
56         HKEY_TYPE m_HkeyType;\r
57         void SetDraggingCursor();\r
58         void SetNormalCursor();\r
59         void SetNoCursor();\r
60 };\r
61 \r
62 /////////////////////////////////////////////////////////////////////////////\r
63 \r
64 //{{AFX_INSERT_LOCATION}}\r
65 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
66 \r
67 #endif // !defined(AFX_KEY_H__509440FD_B54D_4C17_AAA1_C394820F4FB6__INCLUDED_)\r