⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mxcubesview.h

📁 数学建模中常用到的一些小程序的源码 大家共享哈 哈 哈
💻 H
字号:
// MxCubesView.h : interface of the CMxCubesView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MXCUBESVIEW_H__9BF3E151_86E2_42CE_8B1A_0EA3BECE4F04__INCLUDED_)
#define AFX_MXCUBESVIEW_H__9BF3E151_86E2_42CE_8B1A_0EA3BECE4F04__INCLUDED_

#include "Cube.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CCube;

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

// Attributes
public:
	CMxCubesDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMxCubesView)
	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 ~CMxCubesView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	int RANDSTEP;
	void JudgeOK(void);
	BOOL m_bOK;
	CCube m_xCube;
	COLORREF m_xBtnDefColor;
	void PutTitle(CDC* pDC, int n, bool bRaised);
	int m_nDownButton;
	CRect m_xCubeRect;
	CRect m_xBR[4]; // button rect
	void DrawView(CDC* pDC);
	COLORREF BACKGROUND;
	//{{AFX_MSG(CMxCubesView)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnSystemSetbkbndcolor();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnFileNew();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnFileSet();
	afx_msg void OnFileOpen();
	afx_msg void OnFilePrint();
	afx_msg void OnFilePrintPreview();
	afx_msg void OnFilePrintSetup();
	afx_msg void OnFileSave();
	afx_msg void OnFileSaveAs();
	afx_msg void OnFileRestore();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MxCubesView.cpp
inline CMxCubesDoc* CMxCubesView::GetDocument()
   { return (CMxCubesDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MXCUBESVIEW_H__9BF3E151_86E2_42CE_8B1A_0EA3BECE4F04__INCLUDED_)

⌨️ 快捷键说明

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