📄 dlglaplace.cpp
字号:
// DLGLAPLACE.cpp : implementation file
//
#include "stdafx.h"
#include "对话框显示iplImage.h"
#include "DLGLAPLACE.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// DLGLAPLACE dialog
DLGLAPLACE::DLGLAPLACE(CIplImageDlg* pParent /*=NULL*/)
: CDialog(DLGLAPLACE::IDD, pParent)
{
//{{AFX_DATA_INIT(DLGLAPLACE)
m_Laplace = 1;
//}}AFX_DATA_INIT
m_pParent = pParent;
// m_nID = DLGLAPLACE::IDD;
}
void DLGLAPLACE::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DLGLAPLACE)
DDX_Text(pDX, IDC_LAPLACE, m_Laplace);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DLGLAPLACE, CDialog)
//{{AFX_MSG_MAP(DLGLAPLACE)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DLGLAPLACE message handlers
void DLGLAPLACE::OnCancel()
{
// TODO: Add extra cleanup here
// CDialog::OnCancel();
this->DestroyWindow();
// OnNcDestroy();
}
void DLGLAPLACE::OnOK()
{
// TODO: Add extra validation here
CString str;
CEdit* pEdit0 = (CEdit*)GetDlgItem(IDC_LAPLACE);
pEdit0->GetWindowText(str);
TRACE1("%s",str);
int temp = atoi(str);
TRACE1("%d",temp);
m_pParent->Laplace(temp);
/* m_pParent->Laplace(3);*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -