gridmod.cpp

来自「一个2D电磁场FEM计算的VC++源程序」· C++ 代码 · 共 64 行

CPP
64
字号
// GridMod.cpp : implementation file
//

#include "stdafx.h"
#include "femmview.h"
#include "GridMod.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CGridMod dialog


CGridMod::CGridMod(CWnd* pParent /*=NULL*/)
	: CDialog(CGridMod::IDD, pParent)
{
	//{{AFX_DATA_INIT(CGridMod)
	m_gridsize = 0.0;
	//}}AFX_DATA_INIT
}


void CGridMod::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CGridMod)
	DDX_Control(pDX, IDC_COORDS, m_coords);
	DDX_Text(pDX, IDC_GRIDSIZE, m_gridsize);
	//}}AFX_DATA_MAP
	DDX_Control(pDX, IDC_GRIDSIZE, m_IDC_gridsize);
}


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

/////////////////////////////////////////////////////////////////////////////
// CGridMod message handlers

BOOL CGridMod::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_coords.SetCurSel(coords);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CGridMod::OnOK() 
{
	// TODO: Add extra validation here
	coords=m_coords.GetCurSel();
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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