📄 yucedaoru.cpp
字号:
// Yucedaoru.cpp : implementation file
//
#include "stdafx.h"
#include "mining.h"
#include "Yucedaoru.h"
#include"YuceDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CYucedaoru dialog
CYucedaoru::CYucedaoru(CWnd* pParent /*=NULL*/)
: CDialog(CYucedaoru::IDD, pParent)
{
//{{AFX_DATA_INIT(CYucedaoru)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CYucedaoru::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CYucedaoru)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CYucedaoru, CDialog)
//{{AFX_MSG_MAP(CYucedaoru)
ON_WM_CTLCOLOR()
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CYucedaoru message handlers
void CYucedaoru::OnOK()
{
// TODO: Add extra validation here
EndDialog(0);
CYuceDlg yucedlg;
yucedlg.DoModal();
//CDialog::OnOK();
}
HBRUSH CYucedaoru::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
// TODO: Return a different brush if the default is not desired
return m_Brush;
}
BOOL CYucedaoru::OnInitDialog()
{
CDialog::OnInitDialog();
m_Brush=CreateSolidBrush(RGB(34,50,148));
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CYucedaoru::OnPaint()
{
CPaintDC dc(this); // device context for painting
RECT rect;
dc.SetBkMode(TRANSPARENT);
GetClientRect(&rect);
dc.SetTextColor(RGB(255,255,255));
dc.TextOut(rect.left+20,rect.top+40,"提示:将导入预测数据集并依据所得规则进行预测",43);
// TODO: Add your message handler code here
// Do not call CDialog::OnPaint() for painting messages
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -