Beispiel #1
0
void CModifyTubeDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CModifyTubeDlg)
	DDX_Control(pDX, IDC_TUBETYPE, m_TubeList);
	DDX_Control(pDX, IDC_TORPEDOTYPE, m_TorpedoTypeList);
	DDX_Text(pDX, IDC_NUMBEROFTORPEDOS, m_iTorpedoNumber);
	DDV_MinMaxUInt(pDX, m_iTorpedoNumber, 1, 255);
	DDX_Text(pDX, IDC_NUMBEROFTUBES, m_iTubeNumber);
	DDV_MinMaxUInt(pDX, m_iTubeNumber, 1, 255);
	DDX_Text(pDX, IDC_TUBEFIRERATE, m_iTubeFirerate);
	DDV_MinMaxUInt(pDX, m_iTubeFirerate, 1, 255);
	DDX_CBString(pDX, IDC_TUBETYPE, m_strTubeName);
	DDX_Check(pDX, IDC_ONLYMICRO, m_bOnlyMicroPhoton);
	DDX_Text(pDX, IDC_ACCURACY, m_byAccuracy);
	DDV_MinMaxByte(pDX, m_byAccuracy, 0, 100);
	DDX_Check(pDX, IDC_PENETRATING, m_bPenetrating);
	DDX_Check(pDX, IDC_COLLAPSESHIELDS, m_bCollapseShields);
	DDX_Check(pDX, IDC_DOUBLEHULLDMG, m_bDoubleHullDmg);
	DDX_Check(pDX, IDC_DOUBLESHIELDDMG, m_bDoubleShieldDmg);
	DDX_Check(pDX, IDC_IGNOREALLSHIELDS, m_bIgnoreAllShields);
	DDX_Check(pDX, IDC_REDUCEMANEUVER, m_bReduceManeuver);
	DDX_Check(pDX, IDC_MICROTORP, m_bMicro);
	//}}AFX_DATA_MAP
	DDX_Text(pDX, IDC_MOUNTPOS, m_nMountPos);
	DDV_MinMaxShort(pDX, m_nMountPos, 0, 360);
	DDX_Text(pDX, IDC_ANGLE, m_nAngle);
	DDV_MinMaxShort(pDX, m_nAngle, 0, 360);
}
void CBCGPRibbonBackstagePagePrint::DoDataExchange(CDataExchange* pDX)
{
	CBCGPDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CBCGPRibbonBackstagePagePrint)
	DDX_Control(pDX, AFX_ID_PREVIEW_PRINT, m_btnPrint);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_COPIES_EDIT, m_wndCopies);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_COPIES_SPIN, m_btnCopies);

	DDX_Control(pDX, IDC_BCGBARRES_PRINT_PRINTER, m_wndPrinter);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_PROPERTIES, m_wndPrinterProperties);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_PAGE, m_wndPage);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_PAGE_FROM, m_wndPageFrom);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_PAGE_TO, m_wndPageTo);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_COLLATE, m_wndCollate);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_ORIENT, m_wndOrientation);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_PAPER, m_wndPaper);

	DDX_Control(pDX, AFX_ID_PREVIEW_PREV, m_btnPrev);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_PAGE_NUM, m_wndPageNum);
	DDX_Control(pDX, AFX_ID_PREVIEW_NEXT, m_btnNext);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_ZOOM_NUM, m_wndZoomNum);
	DDX_Control(pDX, IDC_BCGBARRES_PRINT_ZOOM_SLIDER, m_wndZoomSlider);

	DDX_Text(pDX, IDC_BCGBARRES_PRINT_COPIES_EDIT, m_nCopies);
	DDV_MinMaxShort(pDX, m_nCopies, 1, 9999);
	//}}AFX_DATA_MAP

	PRINTDLG* dlgPrint = GetPrintDlg();
	if (dlgPrint != NULL)
	{
		DDX_Text(pDX, IDC_BCGBARRES_PRINT_PAGE_FROM, m_nPageFrom);
		DDV_MinMaxUInt(pDX, m_nPageFrom, dlgPrint->nMinPage, min(dlgPrint->nMaxPage, 32767U));

		if (pDX->m_bSaveAndValidate)
		{
			CString strText;
			m_wndPageTo.GetWindowText (strText);
			if (strText.IsEmpty ())
			{
				m_nPageTo = 0xFFFF;
			}
			else
			{
				DDX_Text(pDX, IDC_BCGBARRES_PRINT_PAGE_TO, m_nPageTo);
				DDV_MinMaxUInt(pDX, m_nPageTo, dlgPrint->nMinPage, min(dlgPrint->nMaxPage, 32767U));
			}
		}
		else
		{
			if (m_nPageTo == 0xFFFF)
			{
				m_wndPageTo.SetWindowText (_T(""));
			}
			else
			{
				DDX_Text(pDX, IDC_BCGBARRES_PRINT_PAGE_TO, m_nPageTo);
			}
		}
	}
}
void AllFoldView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	DDX_Check(pDX, IDC_SAVECHECK, m_save);
	DDX_Text(pDX, IDC_PERCENT, m_percent);
	DDV_MinMaxShort(pDX, m_percent, 0, 100);
	DDX_Text(pDX, IDC_SEQUENCENAME, m_sequencename);
	DDX_Text(pDX, IDC_CTNAME, m_ctname);
	DDX_Text(pDX, IDC_NUMBER, m_abs);
}