|
// Key.h: interface for the CKey class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_KEY_H__9605DF10_4F30_11D6_AA7A_00105A212DC5__INCLUDED_)
#define AFX_KEY_H__9605DF10_4F30_11D6_AA7A_00105A212DC5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Object.h"
class CKey : public CObj
{
protected:
CDC *m_dc; // Pointer to the memory DC
unsigned char m_type; // Type of key
CRect m_CRect1,m_CRect2; // CRect objects to define the geometry of the key
public:
unsigned char m_note; // Value of the note
CKey();
virtual ~CKey();
Initialize(CDC *dc,int px,int py,char type);
SetNote(unsigned char nNote);
char IsPressed(int x,int y);
void DrawasNormal();
void DrawOnClick();
void Blit(int x,int y,CDC *pmemDC);
};
#endif // !defined(AFX_KEY_H__9605DF10_4F30_11D6_AA7A_00105A212DC5__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I obtained my PhD degree in Computer Graphics at the National Distance Education University (UNED) in October 2019. I also hold a Ms. degree in Software Engineering and Computer Systems and a Bs. degree in Computer Science from the National Distance Education University (UNED).
I have been employed as a C++ software developer in several companies since year 2000.
I currently work as a Tutor-Professor of Symbolic Logic, Discrete Math and Java Object-Oriented Programming at UNED-Cartagena (Spain) since 2015.