shiyanview.h

来自「用vc简单的实现的OpenGL控制机器人行走」· C头文件 代码 · 共 87 行

H
87
字号
// shiyanView.h : interface of the CShiyanView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SHIYANVIEW_H__6A8CC118_C269_468D_A0F2_217C8EB07132__INCLUDED_)
#define AFX_SHIYANVIEW_H__6A8CC118_C269_468D_A0F2_217C8EB07132__INCLUDED_

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


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

// Attributes
public:
//	CShiyanDoc* GetDocument();
	CClientDC *m_pDC;
	HGLRC m_hRC;
	CRect m_rect;
	double m_left,m_right,m_bottom,m_top,m_near,m_far;
	CButton* m_pButtonOne ;
//	AUX_RGBImageRec *image;
   // unsigned char *pdata;

// Operations
public:
	BOOL bSetupPixelFormat(void);
	void stride(void);
	void go(void);
	void BrickWallTexture(void);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShiyanView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	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 ~CShiyanView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CShiyanView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDoubleclickedOk();
	afx_msg void OnButton1();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnButtonOne();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in shiyanView.cpp
inline CShiyanDoc* CShiyanView::GetDocument()
   { return (CShiyanDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SHIYANVIEW_H__6A8CC118_C269_468D_A0F2_217C8EB07132__INCLUDED_)

⌨️ 快捷键说明

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