#if !defined(AFX_KEY_H__509440FD_B54D_4C17_AAA1_C394820F4FB6__INCLUDED_)
#define AFX_KEY_H__509440FD_B54D_4C17_AAA1_C394820F4FB6__INCLUDED_

#include "Profile.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Key.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CKey window

class CKey : public CButton
{
// Construction
public:
	CKey(int nKey = 0, int nKeyType = NORMAL_KEY);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CKey)
	public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	//}}AFX_VIRTUAL

// Implementation
public:
	int GetKeyType();
	void SetKeyType(int nKeyType);
	virtual ~CKey();

	// Generated message map functions
protected:
	//{{AFX_MSG(CKey)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	BOOL IsDroppableKey(int nKey);
	int m_nDroppableKeyType;
	int m_nDroppableKey;
	int m_nKey;
	int GetPointedKey(CPoint point);
	int m_nKeyType;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_KEY_H__509440FD_B54D_4C17_AAA1_C394820F4FB6__INCLUDED_)

(C) 2001-2005 oishi@cam.hi-ho.ne.jp