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
6 #endif // _MSC_VER > 1000
\r
7 // Key.h : header file
\r
10 #include "profile.h"
\r
12 /////////////////////////////////////////////////////////////////////////////
\r
15 enum KEY_TYPE { NORMAL_KEY, PUSHED_KEY, DROPPABLE_KEY, ORIGINAL_KEY, REMAPPED_KEY, REMAPPED_PUSHED_KEY };
\r
17 class CKey : public CButton
\r
21 CKey(int nKey = 0, int nKeyType = NORMAL_KEY, HKEY_TYPE hkeyType = CURRENT_USER);
\r
30 // ClassWizard generated virtual function overrides
\r
31 //{{AFX_VIRTUAL(CKey)
\r
33 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
\r
39 void SetKeyType(int nKeyType);
\r
42 // Generated message map functions
\r
45 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
\r
46 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
\r
47 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
\r
50 DECLARE_MESSAGE_MAP()
\r
52 BOOL IsDroppableKey(int nKey);
\r
53 int m_nDroppableKeyType;
\r
54 int m_nDroppableKey;
\r
57 HKEY_TYPE m_HkeyType;
\r
58 void SetDraggingCursor();
\r
59 void SetNormalCursor();
\r
63 /////////////////////////////////////////////////////////////////////////////
\r
65 //{{AFX_INSERT_LOCATION}}
\r
66 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
\r
68 #endif // !defined(AFX_KEY_H__509440FD_B54D_4C17_AAA1_C394820F4FB6__INCLUDED_)
\r