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

📄 oparcsegdlg.cpp

📁 一个2D电磁场FEM计算的VC++源程序
💻 CPP
字号:
// OpArcSegDlg.cpp : implementation file
//

#include "stdafx.h"
#include "femme.h"
#include "femmeDoc.h"
#include "OpArcSegDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// COpArcSegDlg dialog


COpArcSegDlg::COpArcSegDlg(CWnd* pParent /*=NULL*/)
	: CDialog(COpArcSegDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(COpArcSegDlg)
	m_MaxSeg = 0.0;
	m_hide = FALSE;
	m_ingroup = 0;
	//}}AFX_DATA_INIT
}


void COpArcSegDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(COpArcSegDlg)
	DDX_Control(pDX, IDC_ARCSEGBDRY2, m_ArcSegBdry);
	DDV_MinMaxDouble(pDX, m_MaxSeg, 1.e-002, 10.);
	DDX_Check(pDX, IDC_ARCHIDE, m_hide);
	DDX_Text(pDX, IDC_ARCGRP, m_ingroup);
	DDX_Text(pDX, IDC_MAXSEG2, m_MaxSeg);
	//}}AFX_DATA_MAP
	DDX_Control(pDX, IDC_ARCGRP, m_IDC_ingroup);
	DDX_Control(pDX, IDC_MAXSEG2, m_IDC_MaxSeg);
}


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

/////////////////////////////////////////////////////////////////////////////
// COpArcSegDlg message handlers

BOOL COpArcSegDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	CArray<CBoundaryProp,CBoundaryProp&> &lineproplist=*plineproplist;
	int i;

	// TODO: Add extra initialization here
	m_ArcSegBdry.AddString("<None>");
	for(i=0;i<lineproplist.GetSize();i++)
		m_ArcSegBdry.AddString(lineproplist[i].BdryName);

	m_ArcSegBdry.SetCurSel(cursel);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void COpArcSegDlg::OnOK() 
{
	// TODO: Add extra validation here
	cursel=m_ArcSegBdry.GetCurSel();

	CDialog::OnOK();
}

⌨️ 快捷键说明

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