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
4 #include "Profile.h" // Added by ClassView
\r
7 #endif // _MSC_VER > 1000
\r
8 // Key.h : header file
\r
11 /////////////////////////////////////////////////////////////////////////////
\r
14 enum KEY_TYPE { NORMAL_KEY, PUSHED_KEY, DROPPABLE_KEY, ORIGINAL_KEY, REMAPPED_KEY, REMAPPED_PUSHED_KEY };
\r
16 class CKey : public CButton
\r
20 CKey(int nKey = 0, int nKeyType = NORMAL_KEY, HKEY_TYPE hkeyType = CURRENT_USER);
\r
29 // ClassWizard generated virtual function overrides
\r
30 //{{AFX_VIRTUAL(CKey)
\r
32 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
\r
38 void SetKeyType(int nKeyType);
\r
41 // Generated message map functions
\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
49 DECLARE_MESSAGE_MAP()
\r
51 BOOL IsDroppableKey(int nKey);
\r
52 int m_nDroppableKeyType;
\r
53 int m_nDroppableKey;
\r
56 HKEY_TYPE m_HkeyType;
\r
57 void SetDraggingCursor();
\r
58 void SetNormalCursor();
\r
62 /////////////////////////////////////////////////////////////////////////////
\r
64 //{{AFX_INSERT_LOCATION}}
\r
65 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
\r
67 #endif // !defined(AFX_KEY_H__509440FD_B54D_4C17_AAA1_C394820F4FB6__INCLUDED_)
\r