You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
2.3 KiB
C++

// mfxtest2View.cpp : Implementierung der Klasse CMfxtest2View
//
#include "stdafx.h"
#include "mfxtest2.h"
#include "mfxtest2Doc.h"
#include "mfxtest2View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
llgfx_id logo;
llgfx_id blendbuffer;
/////////////////////////////////////////////////////////////////////////////
// CMfxtest2View
IMPLEMENT_DYNCREATE(CMfxtest2View, CView)
BEGIN_MESSAGE_MAP(CMfxtest2View, CView)
//{{AFX_MSG_MAP(CMfxtest2View)
ON_WM_ERASEBKGND()
ON_WM_TIMER()
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMfxtest2View Konstruktion/Destruktion
CMfxtest2View::CMfxtest2View()
{
// ZU ERLEDIGEN: Hier Code zur Konstruktion einfügen,
}
CMfxtest2View::~CMfxtest2View()
{
}
BOOL CMfxtest2View::PreCreateWindow(CREATESTRUCT& cs)
{
// ZU ERLEDIGEN: Ändern Sie hier die Fensterklasse oder das Erscheinungsbild, indem Sie
// CREATESTRUCT cs modifizieren.
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMfxtest2View Zeichnen
void CMfxtest2View::OnDraw(CDC* pDC)
{
CMfxtest2Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// ZU ERLEDIGEN: Hier Code zum Zeichnen der ursprünglichen Daten hinzufügen
}
/////////////////////////////////////////////////////////////////////////////
// CMfxtest2View Diagnose
#ifdef _DEBUG
void CMfxtest2View::AssertValid() const
{
CView::AssertValid();
}
void CMfxtest2View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMfxtest2Doc* CMfxtest2View::GetDocument() // Die endgültige (nicht zur Fehlersuche kompilierte) Version ist Inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMfxtest2Doc)));
return (CMfxtest2Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMfxtest2View Nachrichten-Handler
extern HWND hWND;
void CMfxtest2View::PreSubclassWindow()
{
hWND = m_hWnd;
CView::PreSubclassWindow();
}
BOOL CMfxtest2View::OnEraseBkgnd(CDC* pDC)
{
// KEIN ERASE
return CView::OnEraseBkgnd(pDC);
//return TRUE;
}
int CMfxtest2View::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
return 0;
}
void CMfxtest2View::OnTimer(UINT nIDEvent)
{
CView::OnTimer(nIDEvent);
}