📄 inputdlg.cpp
字号:
// InputDlg.cpp : implementation file
//
#include "stdafx.h"
#include "数字水印技术.h"
#include "InputDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInputDlg dialog
CInputDlg::CInputDlg(CWnd* pParent /*=NULL*/)
: CDialog(CInputDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CInputDlg)
m_a1 = 0.0f;
m_a2 = 0.0f;
m_a3 = 0.0f;
m_a4 = 0.0f;
//}}AFX_DATA_INIT
}
void CInputDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInputDlg)
DDX_Text(pDX, IDC_EDITa1, m_a1);
DDX_Text(pDX, IDC_EDITa2, m_a2);
DDX_Text(pDX, IDC_EDITa3, m_a3);
DDX_Text(pDX, IDC_EDITa4, m_a4);
DDV_MinMaxFloat(pDX, m_a4, 0.f, 10.f);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInputDlg, CDialog)
//{{AFX_MSG_MAP(CInputDlg)
ON_BN_CLICKED(IDC_Default, OnDefault)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInputDlg message handlers
void CInputDlg::OnDefault()
{
// TODO: Add your control notification handler code here
m_a1 = (float)0.703;
m_a2 = (float)0.436;
m_a3 = (float)-0.200;
m_a4 = (float)0.061;
UpdateData(FALSE);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -