random.h

来自「windows核心编程,详细讲述WINDOWS编程原理」· C头文件 代码 · 共 30 行

H
30
字号
// Random.h: interface for the CRandom class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RANDOM_H__1B175428_3C0D_40BC_8440_26FE7C8FB673__INCLUDED_)
#define AFX_RANDOM_H__1B175428_3C0D_40BC_8440_26FE7C8FB673__INCLUDED_

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

#include "Shape1.h"
#include "Afxtempl.h"

class CRandom : public CShape  
{DECLARE_SERIAL(CRandom)
public:
	virtual void Serialize(CArchive& ar);
	virtual void SetPen(int lt, UINT pw, COLORREF cl);
	
	virtual void SetPoint(CPoint pt1, CPoint pt2);
	virtual void Draw(CDC *pDC);
	CRandom();
	virtual ~CRandom();
    CArray <CPoint,CPoint> m_ptArray1;
	CArray <CPoint,CPoint> m_ptArray2;
};

#endif // !defined(AFX_RANDOM_H__1B175428_3C0D_40BC_8440_26FE7C8FB673__INCLUDED_)

⌨️ 快捷键说明

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