strokeview.h

来自「C:Documents and SettingsAdministrator桌面V」· C头文件 代码 · 共 88 行

H
88
字号
// StrokeView.h : interface of the CStrokeView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_STROKEVIEW_H__C29F518D_7280_11D4_87D5_000021E12E4D__INCLUDED_)
#define AFX_STROKEVIEW_H__C29F518D_7280_11D4_87D5_000021E12E4D__INCLUDED_

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

#include "gl\gl.h"
#include "gl\glu.h"
#include "gl\glaux.h"

typedef struct charpoint {
   GLfloat   x, y;
   int    type;
} CP;

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

// Attributes
public:
	CStrokeDoc* GetDocument();

	//add down
	CClientDC   *m_pDC;
	char *test1,*test2;
// Operations
public:
	void Init();
	BOOL bSetupPixelFormat(void);
	void DrawScene(void);

	void CALLBACK CStrokeView::drawLetter(CP *l);
	void CALLBACK CStrokeView::printStrokedString(char *s);
	//add up

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStrokeView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CStrokeView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in StrokeView.cpp
inline CStrokeDoc* CStrokeView::GetDocument()
   { return (CStrokeDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STROKEVIEW_H__C29F518D_7280_11D4_87D5_000021E12E4D__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?