Click here to Skip to main content
15,885,278 members
Articles / Web Development / HTML

Rotate Your Graphics - Advanced Memory Device Context

Rate me:
Please Sign up or sign in to vote.
4.75/5 (7 votes)
17 Jan 2000 121.1K   4K   43  
A memory DC that allows you to rotate your graphics
// TestRotDCView.h : interface of the CTestRotDCView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TESTROTDCVIEW_H__131121BF_DB81_11D2_BF46_000000000000__INCLUDED_)
#define AFX_TESTROTDCVIEW_H__131121BF_DB81_11D2_BF46_000000000000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

class CTestRotDCView : public CView
{
protected: // create from serialization only
	CTestRotDCView();
	DECLARE_DYNCREATE(CTestRotDCView)

// Attributes
public:
	CTestRotDCDoc* GetDocument();

	void Draw(CDC *pDC, const CRect & rectDC);

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestRotDCView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CTestRotDCView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTestRotDCView)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in TestRotDCView.cpp
inline CTestRotDCDoc* CTestRotDCView::GetDocument()
   { return (CTestRotDCDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTROTDCVIEW_H__131121BF_DB81_11D2_BF46_000000000000__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.


Written By
Other JP Morgan Chase
Hong Kong Hong Kong
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions