|
// RoboterView.cpp : Implementierung der Klasse CRoboterView
//
#include "stdafx.h"
#include "RasendeRoboter.h"
#include "RoboterDoc.h"
#include "RoboterView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRoboterView
IMPLEMENT_DYNCREATE(CRoboterView, CView)
BEGIN_MESSAGE_MAP(CRoboterView, CView)
//{{AFX_MSG_MAP(CRoboterView)
ON_COMMAND(ID_ROBO_BLUE, OnRoboBlue)
ON_COMMAND(ID_ROBO_GREEN, OnRoboGreen)
ON_COMMAND(ID_ROBO_RED, OnRoboRed)
ON_COMMAND(ID_ROBO_YELLOW, OnRoboYellow)
ON_COMMAND(ID_JUWEL_BLDR, OnJuwelBldr)
ON_COMMAND(ID_JUWEL_BLKR, OnJuwelBlkr)
ON_COMMAND(ID_JUWEL_BLQU, OnJuwelBlqu)
ON_COMMAND(ID_JUWEL_BLSE, OnJuwelBlse)
ON_COMMAND(ID_JUWEL_GEDR, OnJuwelGedr)
ON_COMMAND(ID_JUWEL_GEKR, OnJuwelGekr)
ON_COMMAND(ID_JUWEL_GEQU, OnJuwelGequ)
ON_COMMAND(ID_JUWEL_GESE, OnJuwelGese)
ON_COMMAND(ID_JUWEL_GRDR, OnJuwelGrdr)
ON_COMMAND(ID_JUWEL_GRKR, OnJuwelGrkr)
ON_COMMAND(ID_JUWEL_GRQU, OnJuwelGrqu)
ON_COMMAND(ID_JUWEL_GRSE, OnJuwelGrse)
ON_COMMAND(ID_JUWEL_JOKER, OnJuwelJoker)
ON_COMMAND(ID_JUWEL_RODR, OnJuwelRodr)
ON_COMMAND(ID_JUWEL_ROKR, OnJuwelRokr)
ON_COMMAND(ID_JUWEL_ROQU, OnJuwelRoqu)
ON_COMMAND(ID_JUWEL_ROSE, OnJuwelRose)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CRoboterView Konstruktion/Destruktion
CRoboterView::CRoboterView()
{
// ZU ERLEDIGEN: Hier Code zur Konstruktion einf�gen,
}
CRoboterView::~CRoboterView()
{
}
BOOL CRoboterView::PreCreateWindow(CREATESTRUCT& cs)
{
// ZU ERLEDIGEN: �ndern Sie hier die Fensterklasse oder das Erscheinungsbild, indem Sie
// CREATESTRUCT cs modifizieren.
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CRoboterView Zeichnen
void CRoboterView::OnDraw(CDC* pDC)
{
CRoboterDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
CRect rcClient; GetClientRect(&rcClient);
// grauen Hintergrund zeichnen
CBrush brLtGray(GetSysColor(COLOR_3DFACE));
pDC->FillRect(rcClient, &brLtGray);
}
/////////////////////////////////////////////////////////////////////////////
// CRoboterView Diagnose
#ifdef _DEBUG
void CRoboterView::AssertValid() const
{
CView::AssertValid();
}
void CRoboterView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CRoboterDoc* CRoboterView::GetDocument() // Die endg�ltige (nicht zur Fehlersuche kompilierte) Version ist Inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CRoboterDoc)));
return (CRoboterDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CRoboterView Nachrichten-Handler
void CRoboterView::OnInitialUpdate()
{
CView::OnInitialUpdate();
}
void CRoboterView::OnRoboBlue()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnRoboGreen()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnRoboRed()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnRoboYellow()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelBldr()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelBlkr()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelBlqu()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelBlse()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelGedr()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelGekr()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelGequ()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelGese()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelGrdr()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelGrkr()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelGrqu()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelGrse()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelJoker()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelRodr()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelRokr()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelRoqu()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
void CRoboterView::OnJuwelRose()
{
// TODO: Code f�r Befehlsbehandlungsroutine hier einf�gen
}
|
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.