📄 juanji.cpp
字号:
// juanji.cpp : implementation file
//
#include "stdafx.h"
#include "Gray.h"
#include "juanji.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern int tempf[3][3];
extern int tempalldivide;
/////////////////////////////////////////////////////////////////////////////
// juanji dialog
juanji::juanji(CWnd* pParent /*=NULL*/)
: CDialog(juanji::IDD, pParent)
{
//{{AFX_DATA_INIT(juanji)
m_edit1 = -1;
m_edit2 = -1;
m_edit3 = -1;
m_edit4 = -1;
m_edit5 = 9;
m_edit6 = -1;
m_edit7 = -1;
m_edit8 = -1;
m_edit9 = -1;
m_edit10 = 1;
//}}AFX_DATA_INIT
}
void juanji::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(juanji)
DDX_Text(pDX, IDC_EDIT1, m_edit1);
DDX_Text(pDX, IDC_EDIT2, m_edit2);
DDX_Text(pDX, IDC_EDIT3, m_edit3);
DDX_Text(pDX, IDC_EDIT4, m_edit4);
DDX_Text(pDX, IDC_EDIT5, m_edit5);
DDX_Text(pDX, IDC_EDIT6, m_edit6);
DDX_Text(pDX, IDC_EDIT7, m_edit7);
DDX_Text(pDX, IDC_EDIT8, m_edit8);
DDX_Text(pDX, IDC_EDIT9, m_edit9);
DDX_Text(pDX, IDC_EDIT10, m_edit10);
DDV_MinMaxInt(pDX, m_edit10, 0, 65535);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(juanji, CDialog)
//{{AFX_MSG_MAP(juanji)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// juanji message handlers
void juanji::OnOK()
{
// TODO: Add extra validation here
CWnd::UpdateData(true);
tempf[0][0] = m_edit1;
tempf[0][1] = m_edit2;
tempf[0][2] = m_edit3;
tempf[1][0] = m_edit4;
tempf[1][1] = m_edit5;
tempf[1][2] = m_edit6;
tempf[2][0] = m_edit7;
tempf[2][1] = m_edit8;
tempf[2][2] = m_edit9;
tempalldivide = m_edit10;
UpdateData(FALSE);
CDialog::OnOK();
}
void juanji::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -