// "cuboid.png"
void DrawCuboid(CDC *pDC)
{
Graphics graphics(pDC->m_hDC);
Point point1(50, 50); // 2 3
Point point2(100, 20);// 1 7
Point point3(200, 20);//
Point point4(50, 250);//
Point point5(150, 250);// 6
Point point6(200, 220);//4 5
Point point7(150,50); //
// front :1,7,5,4
Point frontPoints[4]={ point1 , point7 , point5, point4};
RectF frontRect((float)point1.X,(float)point1.Y,
(float)(point7.X-point1.X),
(float)(point5.Y-point7.Y))
void DrawCuboid(CDC *pDC)
{
Graphics graphics(pDC->m_hDC);
Point point1(50, 50); // 2 3
Point point2(100, 20);// 1 7
Point point3(200, 20);//
Point point4(50, 250);//
Point point5(150, 250);// 6
Point point6(200, 220);//4 5
Point point7(150,50); //
// front :1,7,5,4
Point frontPoints[4]={ point1 , point7 , point5, point4};
RectF frontRect((float)point1.X,(float)point1.Y,
(float)(point7.X-point1.X),
(float)(point5.Y-point7.Y))