⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basepara.cpp

📁 《数字图象工程案例》原码
💻 CPP
字号:
// BASEPARA.cpp : implementation file
//

#include "stdafx.h"
#include "Designer.h"
#include "BASEPARA.h"
#include "ontrol.h"
#include "MAINFrm.h"
#include "DESIGNERVIEW.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// BASEPARA dialog


BASEPARA::BASEPARA(CWnd* pParent /*=NULL*/)
	: CDialog(BASEPARA::IDD, pParent)
{
	//{{AFX_DATA_INIT(BASEPARA)
	m_cpmd = 0;
	m_fbhs = 0;
	m_njss = 0;
	m_wzs = 0;
	m_nf = 0;
	m_wm = 0;
	m_jm = 0;
	//}}AFX_DATA_INIT
}


void BASEPARA::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(BASEPARA)
	DDX_Text(pDX, IDC_EDIT_CPMD, m_cpmd);
	DDX_Text(pDX, IDC_EDIT_FBHS, m_fbhs);
	DDX_Text(pDX, IDC_EDIT_NJSS, m_njss);
	DDX_Text(pDX, IDC_EDIT_WZS, m_wzs);
	DDX_Text(pDX, IDC_EDIT_NF, m_nf);
	DDX_Text(pDX, IDC_EDIT_WM, m_wm);
	DDX_Text(pDX, IDC_EDIT_JM, m_jm);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(BASEPARA, CDialog)
	//{{AFX_MSG_MAP(BASEPARA)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// BASEPARA message handlers

void BASEPARA::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);
	CMainFrame * pFrame = static_cast <CMainFrame *>(AfxGetMainWnd());
    CDesignerView *m_pShowPhotoView = pFrame->GetMainView();
	m_pShowPhotoView->m_jwm = this->m_jm/this->m_wm;
	m_pShowPhotoView->Invalidate();
		m_pShowPhotoView->SetFocus();
	CDialog::OnOK();
}

⌨️ 快捷键说明

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