shoumingdlg.cpp

来自「按作业效益非增序输入作业的截止期限」· C++ 代码 · 共 72 行

CPP
72
字号
// ShoumingDlg.cpp : implementation file
//

#include "stdafx.h"
#include "图形学实验.h"
#include "ShoumingDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CShoumingDlg dialog


CShoumingDlg::CShoumingDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CShoumingDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CShoumingDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CShoumingDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CShoumingDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CShoumingDlg, CDialog)
	//{{AFX_MSG_MAP(CShoumingDlg)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CShoumingDlg message handlers

void CShoumingDlg::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	// TODO: Add your message handler code here
	dc.MoveTo(CPoint(150,250));
	dc.LineTo(CPoint(250,250));
	dc.MoveTo(CPoint(245,248));
	dc.LineTo(CPoint(250,250));
	dc.LineTo(CPoint(245,252));
	dc.TextOut(252,240,"X");
	dc.MoveTo(CPoint(200,200));
	dc.LineTo(CPoint(200,300));
	dc.MoveTo(CPoint(198,295));
	dc.LineTo(CPoint(200,300));
	dc.LineTo(CPoint(202,295));
	dc.TextOut(190,302,"Y");

//	dc.MoveTo(CPoint(235,215));
//	dc.LineTo(CPoint(165,285));
//	dc.MoveTo(CPoint(167,280));
//	dc.LineTo(CPoint(165,285));
//	dc.LineTo(CPoint(170,283));
//	dc.TextOut(162,285,"Z");

	// Do not call CDialog::OnPaint() for painting messages
}

⌨️ 快捷键说明

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