|
// WaveTestView.cpp : implementation of the CWaveTestView class
//
#include "stdafx.h"
#include "WaveTest.h"
#include "WaveTestDoc.h"
#include "WaveTestView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define __LJS__DEBUG__YES__
#include "LJSDebug.h"
/////////////////////////////////////////////////////////////////////////////
// CWaveTestView
IMPLEMENT_DYNCREATE(CWaveTestView, CView)
BEGIN_MESSAGE_MAP(CWaveTestView, CView)
//{{AFX_MSG_MAP(CWaveTestView)
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CWaveTestView construction/destruction
CWaveTestView::CWaveTestView()
{
// TODO: add construction code here
}
CWaveTestView::~CWaveTestView()
{
}
BOOL CWaveTestView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CWaveTestView drawing
void CWaveTestView::OnDraw(CDC* pDC)
{
CWaveTestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
pDC->SetPixel(0,0,0);
}
/////////////////////////////////////////////////////////////////////////////
// CWaveTestView diagnostics
#ifdef _DEBUG
void CWaveTestView::AssertValid() const
{
CView::AssertValid();
}
void CWaveTestView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CWaveTestDoc* CWaveTestView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CWaveTestDoc)));
return (CWaveTestDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CWaveTestView message handlers
void CWaveTestView::OnLButtonDown(UINT nFlags, CPoint point)
{
VoidFunction();
EXITCHECKVOIDFUNC( BoolFunction(), "Error");
CView::OnLButtonDown(nFlags, point);
}
void CWaveTestView::VoidFunction()
{
CHECKVOIDEXPR( 2 == 5, " Error!! Different Value");
}
BOOL CWaveTestView::BoolFunction()
{
CHECKEXPR( 2 == 4, " Different Value!! Error", false);
return false;
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.