Ejemplo n.º 1
0
void CSettingsDisplayPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	DDX_Check(pDX, IDC_ADJUST_DISPLAY, m_bAdjustDisplay);
	DDX_Check(pDX, IDC_HQ_COLOR_SCALING, m_bHQColorScaling);
	DDX_Check(pDX, IDC_SUBPIXEL_SCALING, m_bSubpixelScaling);
	DDX_Check(pDX, IDC_INVERT_COLORS, m_bInvertColors);
	DDX_Check(pDX, IDC_ADJUST_PRINTING, m_bAdjustPrinting);

	DDX_Control(pDX, IDC_BRIGHTNESS, m_sliderBrightness);
	DDX_Control(pDX, IDC_CONTRAST, m_sliderContrast);
	DDX_Control(pDX, IDC_GAMMA, m_sliderGamma);

	if (m_bSlidersInitialized)
	{
		// Two strange effects here: First, negative min/max limits don't work properly
		// Second: If position is set before SetRange is called, slider is not updated
		// until position changes. That's why all this mess.

		DDX_Slider(pDX, IDC_BRIGHTNESS, m_nBrightness);
		DDX_Slider(pDX, IDC_CONTRAST, m_nContrast);
		DDX_Slider(pDX, IDC_GAMMA, m_nGamma);
	}

	DDX_Control(pDX, IDC_COMBO_UNITS, m_cboUnits);
	DDX_CBIndex(pDX, IDC_COMBO_UNITS, m_nUnits);

	CString strBrightness, strContrast, strGamma;
	strBrightness.Format(m_nBrightness == 100 ? IDS_BRIGHTNESS_TEXT_ZERO : IDS_BRIGHTNESS_TEXT, m_nBrightness - 100);
	strContrast.Format(m_nContrast == 100 ? IDS_CONTRAST_TEXT_ZERO : IDS_CONTRAST_TEXT, m_nContrast - 100);
	strGamma.Format(IDS_GAMMA_TEXT, m_nGamma / 10.0);
	DDX_Text(pDX, IDC_BRIGHTNESS_TEXT, strBrightness);
	DDX_Text(pDX, IDC_CONTRAST_TEXT, strContrast);
	DDX_Text(pDX, IDC_GAMMA_TEXT, strGamma);

	m_sliderBrightness.EnableWindow(m_bAdjustDisplay);
	m_sliderContrast.EnableWindow(m_bAdjustDisplay);
	m_sliderGamma.EnableWindow(m_bAdjustDisplay);
	GetDlgItem(IDC_BRIGHTNESS_TEXT)->EnableWindow(m_bAdjustDisplay);
	GetDlgItem(IDC_CONTRAST_TEXT)->EnableWindow(m_bAdjustDisplay);
	GetDlgItem(IDC_GAMMA_TEXT)->EnableWindow(m_bAdjustDisplay);
}
Ejemplo n.º 2
0
void CPPagePlayback::DoDataExchange(CDataExchange* pDX)
{
	__super::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_SLIDER1, m_volumectrl);
	DDX_Control(pDX, IDC_SLIDER2, m_balancectrl);
	DDX_Slider(pDX, IDC_SLIDER1, m_nVolume);
	DDX_Slider(pDX, IDC_SLIDER2, m_nBalance);
	DDX_Radio(pDX, IDC_RADIO1, m_iLoopForever);
	DDX_Control(pDX, IDC_EDIT1, m_loopnumctrl);
	DDX_Text(pDX, IDC_EDIT1, m_nLoops);
	DDX_Check(pDX, IDC_CHECK1, m_fRewind);
	DDX_CBIndex(pDX, IDC_COMBO1, m_iZoomLevel);
	DDX_Check(pDX, IDC_CHECK5, m_iRememberZoomLevel);
	DDX_Check(pDX, IDC_CHECK2, m_fAutoloadAudio);
	DDX_Check(pDX, IDC_CHECK3, m_fAutoloadSubtitles);
	DDX_Check(pDX, IDC_CHECK7, m_fEnableWorkerThreadForOpening);
	DDX_Check(pDX, IDC_CHECK6, m_fReportFailedPins);
	DDX_Text(pDX, IDC_EDIT2, m_subtitlesLanguageOrder);
	DDX_Text(pDX, IDC_EDIT3, m_audiosLanguageOrder);
}
void SettingsDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);

	DDX_Control(pDX, IDC_ALIGN_CHECK, _align_check_btn);
	DDX_Control(pDX, IDC_CORRELATE_CHECK, _correlate_check_btn);

	DDX_Check(pDX, IDC_ALIGN_CHECK, _align_check_val);
	DDX_Check(pDX, IDC_CORRELATE_CHECK, _correlate_check_val);
	DDX_Control(pDX, IDC_DISCRETE_FRIQ_SLIDER, _discrete_friq_slider);
	DDX_Slider(pDX, IDC_DISCRETE_FRIQ_SLIDER, _discrete_friq_value);
}
Ejemplo n.º 4
0
void CStyleEditorPPage::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_BUTTON1, m_font);
	DDX_CBIndex(pDX, IDC_COMBO1, m_iCharset);
	DDX_Control(pDX, IDC_COMBO1, m_charset);
	DDX_Text(pDX, IDC_EDIT3, m_spacing);
	DDX_Control(pDX, IDC_SPIN3, m_spacingspin);
	DDX_Text(pDX, IDC_EDIT11, m_angle);
	DDX_Control(pDX, IDC_SPIN10, m_anglespin);
	DDX_Text(pDX, IDC_EDIT5, m_scalex);
	DDX_Control(pDX, IDC_SPIN4, m_scalexspin);
	DDX_Text(pDX, IDC_EDIT6, m_scaley);
	DDX_Control(pDX, IDC_SPIN5, m_scaleyspin);
	DDX_Radio(pDX, IDC_RADIO1, m_borderstyle);
	DDX_Text(pDX, IDC_EDIT1, m_borderwidth_str);
	DDX_Text(pDX, IDC_EDIT2, m_shadowdepth_str);
	DDX_Radio(pDX, IDC_RADIO3, m_screenalignment);
	DDX_Text(pDX, IDC_EDIT7, m_margin.left);
	DDX_Control(pDX, IDC_SPIN6, m_marginleftspin);
	DDX_Text(pDX, IDC_EDIT8, m_margin.right);
	DDX_Control(pDX, IDC_SPIN7, m_marginrightspin);
	DDX_Text(pDX, IDC_EDIT9, m_margin.top);
	DDX_Control(pDX, IDC_SPIN8, m_margintopspin);
	DDX_Text(pDX, IDC_EDIT10, m_margin.bottom);
	DDX_Control(pDX, IDC_SPIN9, m_marginbottomspin);
	DDX_Control(pDX, IDC_COLORPRI, m_color[0]);
	DDX_Control(pDX, IDC_COLORSEC, m_color[1]);
	DDX_Control(pDX, IDC_COLOROUTL, m_color[2]);
	DDX_Control(pDX, IDC_COLORSHAD, m_color[3]);
	DDX_Slider(pDX, IDC_SLIDER2, m_alpha[0]);
	DDX_Slider(pDX, IDC_SLIDER3, m_alpha[1]);
	DDX_Slider(pDX, IDC_SLIDER5, m_alpha[2]);
	DDX_Slider(pDX, IDC_SLIDER6, m_alpha[3]);
	DDX_Control(pDX, IDC_SLIDER2, m_alphasliders[0]);
	DDX_Control(pDX, IDC_SLIDER3, m_alphasliders[1]);
	DDX_Control(pDX, IDC_SLIDER5, m_alphasliders[2]);
	DDX_Control(pDX, IDC_SLIDER6, m_alphasliders[3]);
	DDX_Check(pDX, IDC_CHECK1, m_linkalphasliders);
}
Ejemplo n.º 5
0
void CEditableRange::DoDataExchange(CDataExchange* pDX)
{	
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CEditableRange)
	DDX_Control(pDX, IDC_SLIDER, m_SliderCtrl);
	DDX_Control(pDX, IDC_VALUE, m_ValueCtrl);
	DDX_Control(pDX, IDC_UPDATE_VALUE, m_UpdateValue);
	DDX_Control(pDX, IDC_SELECT_RANGE, m_SelectRange);
	DDX_Text(pDX, IDC_MIN_RANGE, m_MinRange);
	DDX_Text(pDX, IDC_MAX_RANGE, m_MaxRange);
	DDX_Text(pDX, IDC_VALUE, m_Value);
	DDX_Slider(pDX, IDC_SLIDER, m_SliderPos);
	//}}AFX_DATA_MAP
}
Ejemplo n.º 6
0
void COptionsDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);

	DDX_Slider(		pDX, IDC_LEVEL_SLIDER,	m_uiLevel);
	DDX_Text(		pDX, IDC_TIME_LIMIT,	m_uiTimeLimit);
	DDX_Check(		pDX, IDC_THINKING,		m_bShowThinking);

	DDV_MinMaxUInt(	pDX, m_uiLevel,		0, 100);
	DDV_MinMaxUInt(	pDX, m_uiTimeLimit, 0, 3600);

	COthelloApp::GetInstance()->m_uiLevel		= Slide2Level(m_uiLevel);
	COthelloApp::GetInstance()->m_uiTimeLimit	= 1000 * m_uiTimeLimit;
	COthelloApp::GetInstance()->m_bShowThinking	= m_bShowThinking;
}
Ejemplo n.º 7
0
void CGameKindInfoDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_KINDNAME, m_strKindName);
	DDX_Text(pDX, IDC_SORT_ID, m_dwSortID);
	DDX_Text(pDX, IDC_TABLECOUNT, m_dwTableCount);
	DDX_Text(pDX, IDC_HIGHSCORE, m_dwHighScore);
	DDX_Text(pDX, IDC_CELLSCORE, m_dwCellScore);
	DDX_Text(pDX, IDC_LESSSCORE, m_dwLessScore);
	DDX_Text(pDX, IDC_TAXRATE, m_dwTaxRate);
	DDX_Text(pDX, IDC_AIUSERCOUNT, m_dwAIUserCount);
	DDX_Control(pDX, IDC_GAMEPROCESSTYPE, m_comboGameProcessType);
	DDX_Control(pDX, IDC_AILEVEL, m_sliderAILevel);
	DDX_Slider(pDX, IDC_AILEVEL, m_dwAILevel);
}
Ejemplo n.º 8
0
void CPPagePlayback::DoDataExchange(CDataExchange* pDX)
{
	__super::DoDataExchange(pDX);

	DDX_Control(pDX, IDC_SLIDER1, m_volumectrl);
	DDX_Control(pDX, IDC_SLIDER2, m_balancectrl);
	DDX_Slider(pDX, IDC_SLIDER1, m_nVolume);
	DDX_Slider(pDX, IDC_SLIDER2, m_nBalance);
	DDX_Radio(pDX, IDC_RADIO1, m_iLoopForever);
	DDX_Control(pDX, IDC_EDIT1, m_loopnumctrl);
	DDX_Text(pDX, IDC_EDIT1, m_nLoops);
	DDX_Check(pDX, IDC_CHECK1, m_fRewind);
	DDX_CBIndex(pDX, IDC_COMBO1, m_iZoomLevel);
	DDX_Check(pDX, IDC_CHECK5, m_iRememberZoomLevel);
	DDX_Check(pDX, IDC_CHECK7, m_fEnableWorkerThreadForOpening);
	DDX_Check(pDX, IDC_CHECK6, m_fReportFailedPins);
	DDX_Text(pDX, IDC_EDIT2, m_subtitlesLanguageOrder);
	DDX_Text(pDX, IDC_EDIT3, m_audiosLanguageOrder);
	DDX_CBIndex(pDX, IDC_COMBOVOLUME, m_nVolumeStep);
	DDX_Control(pDX, IDC_COMBOVOLUME, m_nVolumeStepCtrl);
	DDX_Control(pDX, IDC_COMBOSPEEDSTEP, m_nSpeedStepCtrl);
	DDX_Check(pDX, IDC_CHECK4, m_fUseInternalSelectTrackLogic);
	DDX_Control(pDX, IDC_COMBO1, m_zoomlevelctrl);
}
Ejemplo n.º 9
0
void CBackgndImageDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CBackgndImageDlg)
	DDX_Control(pDX, IDC_TEXT_COLOR, m_btnTextColor);
	DDX_Control(pDX, IDC_PICTURE_AREA, m_wndPictureArea);
	DDX_Control(pDX, IDC_BRIGHT, m_wndBright);
	DDX_Control(pDX, IDC_FILE_PATH, m_wndFilePath);
	DDX_Control(pDX, IDC_BROWSE, m_wndBrowse);
	DDX_Text(pDX, IDC_FILE_PATH, m_strFilePath);
	DDX_Radio(pDX, IDC_IMAGE_TYPE1, m_iImageType);
	DDX_Slider(pDX, IDC_BRIGHT, m_iBright);
	DDX_Text(pDX, IDC_BRIGHT_VALUE, m_strBright);
	//}}AFX_DATA_MAP
}
Ejemplo n.º 10
0
//******************************************************************************************************
void CStartStopParticleSystem::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CStartStopParticleSystem)
	DDX_Control(pDX, IDC_START_MULTIPLE_PICTURE, m_StartMultiplePicture);
	DDX_Control(pDX, IDC_PAUSE_PICTURE, m_PausePicture);
	DDX_Control(pDX, IDC_STOP_PICTURE, m_StopPicture);
	DDX_Control(pDX, IDC_START_PICTURE, m_StartPicture);
	DDX_Check(pDX, IDC_DISPLAY_BBOX, m_DisplayBBox);	
	DDX_Slider(pDX, IDC_ANIM_SPEED, m_SpeedSliderPos);
	DDX_Check(pDX, IDC_DISPLAY_HELPERS, m_DisplayHelpers);
	DDX_Check(pDX, IDC_LINK_PLAY_TO_SCENE_PLAY, m_LinkPlayToScenePlay);
	DDX_Text(pDX, IDC_TRIGGER_ANIM, m_TriggerAnim);
	//}}AFX_DATA_MAP


}
Ejemplo n.º 11
0
void KSceneSettingPageClouds::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
    DDX_Control(pDX, IDC_SS_TARGET_TREE, m_tree);
    DDX_Text(pDX, IDC_TEXTURE_CLOUD, m_strText);
    DDX_Text(pDX, IDC_TEXTURE_MASK,  m_strMask);
    DDX_Text(pDX, IDC_HEIGHT,  m_fHeight);
    DDX_Text(pDX, IDC_SPEED,   m_fSpeed);
    DDX_Text(pDX, IDC_CLOUD_SIZE, m_fSize);
    DDX_Slider(pDX, IDC_ANGEL, m_nAngel);
    DDX_Text(pDX, IDC_CLOUD_UV, m_nUVRepeat);
	DDX_Text(pDX, IDC_CLOUD_VISIBILITY, m_fVisibility);
    DDX_Text(pDX, IDC_CLOUD_ALPHAREF, m_fAlphaRef);
    DDX_Text(pDX, IDC_CLOUD_TEXFACTOR, m_fTexFactor);
	DDX_Control(pDX, IDC_COLOR1, m_colorButtonDiffuse);
	DDX_Control(pDX, IDC_COLOR2, m_colorButtonAmbient);
}
Ejemplo n.º 12
0
void COptionsSecurity::DoDataExchange(CDataExchange* pDX)
{
  COptions_PropertyPage::DoDataExchange(pDX);

  //{{AFX_DATA_MAP(COptionsSecurity)
  DDX_Check(pDX, IDC_LOCK_TIMER, m_LockOnIdleTimeout);
  DDX_Text(pDX, IDC_IDLE_TIMEOUT, m_IdleTimeOut);
  DDX_Check(pDX, IDC_COPYPSWDURL, m_CopyPswdBrowseURL);
  DDX_Check(pDX, IDC_CLEARBOARDONEXIT, m_ClearClipboardOnExit);
  DDX_Check(pDX, IDC_CLEARBOARDONMINIMIZE, m_ClearClipboardOnMinimize);
  DDX_Check(pDX, IDC_LOCKONMINIMIZE, m_LockOnMinimize);
  DDX_Check(pDX, IDC_CONFIRMCOPY, m_ConfirmCopy);
  DDX_Check(pDX, IDC_LOCKONSCREEN, m_LockOnWindowLock);

  DDX_Control(pDX, IDC_COPYPSWDURL, m_chkbox[0]);
  DDX_Control(pDX, IDC_LOCK_TIMER, m_chkbox[1]);
  //}}AFX_DATA_MAP
  DDX_Slider(pDX, IDC_HASHITERSLIDER, m_HashIterSliderValue);
}
Ejemplo n.º 13
0
void CSoundDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSoundDlg)
	DDX_Control(pDX, IDC_SOUND_TEXT_SB, TextSB);
	DDX_Control(pDX, IDC_SOUND_TEXT_EAX, TextEAX);
	DDX_Control(pDX, IDC_SOUND_TEXT_FMOD, TextFMod);
	DDX_Control(pDX, IDC_SOUND_TEXT_FORCESOFT, TextForceSoundSoft);
	DDX_Control(pDX, IDC_EAX, EAXCtrl);
	DDX_Control(pDX, IDC_FMOD, FModCtrl);
	DDX_Control(pDX, IDC_FORCESOUNDSOFT, ForceSoundSoftCtrl);
	DDX_Check(pDX, IDC_SOUND_ON, SoundOn);
	DDX_Check(pDX, IDC_EAX, EAX);
	DDX_Check(pDX, IDC_FMOD, FMod);
	DDX_Check(pDX, IDC_FORCESOUNDSOFT, ForceSoundSoft);
	DDX_Control(pDX, IDC_SOUND_QUALITY, SoundQuality);
	DDX_Control(pDX, IDC_SOUND_QUALITY_VALUE, SoundQualityValue);
	DDX_Slider(pDX, IDC_SOUND_QUALITY, SoundQualityInt);
	//}}AFX_DATA_MAP
}
Ejemplo n.º 14
0
void CLightD::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CLightD)
	DDX_Control(pDX, IDC_STATIC_AMBIENTLIGHT2, m_dl);
	DDX_Control(pDX, IDC_SLIDER_AR2, m_drslider);
	DDX_Control(pDX, IDC_SLIDER_AG2, m_dgslider);
	DDX_Control(pDX, IDC_SLIDER_AB2, m_dbslider);
	DDX_Control(pDX, IDC_SLIDER_SR, m_srslider);
	DDX_Control(pDX, IDC_SLIDER_SG, m_sgslider);
	DDX_Control(pDX, IDC_SLIDER_AR, m_arslider);
	DDX_Control(pDX, IDC_SLIDER_AG, m_agslider);
	DDX_Control(pDX, IDC_SLIDER_AB, m_abslider);
	DDX_Control(pDX, IDC_STATIC_SPECLIGHT, m_sl);
	DDX_Control(pDX, IDC_STATIC_AMBIENTLIGHT, m_al);
	DDX_Text(pDX, IDC_EDIT_LY, m_y);
	DDX_Text(pDX, IDC_EDIT_LX, m_x);
	DDX_Text(pDX, IDC_EDIT_LZ, m_z);
	DDX_Slider(pDX, IDC_SLIDER_AB, m_ab);
	DDX_Slider(pDX, IDC_SLIDER_AG, m_ag);
	DDX_Slider(pDX, IDC_SLIDER_AR, m_ar);
	DDX_Slider(pDX, IDC_SLIDER_SG, m_sg);
	DDX_Slider(pDX, IDC_SLIDER_SR, m_sr);
	DDX_Text(pDX, IDC_STATIC_AB, m_sab);
	DDX_Text(pDX, IDC_STATIC_AG, m_sag);
	DDX_Text(pDX, IDC_STATIC_AR, m_sar);
	DDX_Text(pDX, IDC_STATIC_SG, m_ssg);
	DDX_Text(pDX, IDC_STATIC_SR, m_ssr);
	DDX_Slider(pDX, IDC_SLIDER_AB2, m_db);
	DDX_Slider(pDX, IDC_SLIDER_AG2, m_dg);
	DDX_Slider(pDX, IDC_SLIDER_AR2, m_dr);
	DDX_Text(pDX, IDC_STATIC_AR2, m_sdr);
	DDX_Text(pDX, IDC_STATIC_AG2, m_sdg);
	DDX_Text(pDX, IDC_STATIC_AB2, m_sdb);
	//}}AFX_DATA_MAP
}
Ejemplo n.º 15
0
void OptionsSpeechPage::DoDataExchange(CDataExchange* pDX)
{
  CPropertyPage::DoDataExchange(pDX);
  DDX_Check(pDX, IDC_SPEAK, m_speak);
  DDX_Control(pDX, IDC_VOICE, m_voiceCtrl);
  DDX_Control(pDX, IDC_SPEECH_RATE, m_rateCtrl);
  DDX_Slider(pDX, IDC_SPEECH_RATE, m_rate);

  if (pDX->m_bSaveAndValidate)
  {
    int sel = m_voiceCtrl.GetCurSel();
    if (sel != CB_ERR)
      m_voiceCtrl.GetLBText(sel,m_voice);
  }
  else
  {
    if (m_voiceCtrl.SelectString(-1,m_voice) == CB_ERR)
    {
      if (m_voiceCtrl.SelectString(-1,m_defaultVoice) == CB_ERR)
        m_voiceCtrl.SetCurSel(0);
    }
  }
}
Ejemplo n.º 16
0
void KSceneSettingPageClouds::OnTimer(UINT_PTR uIDEvent)
{ 
	if(uIDEvent == 0)
	{
		//UpdateData();
		
		CDataExchange dx(this, TRUE);
		DDX_Slider(&dx, IDC_ANGEL, m_nAngel);

		CRect rect;
		GetDlgItem(IDC_VIEW)->GetWindowRect(&rect);
		ScreenToClient(&rect);
		//CDC* pDC = GetDlgItem(IDC_VIEW)->GetDC();
		CClientDC dc(this);
		//if (pDC)
		{
			CPen pen(PS_SOLID, 5, RGB(255, 0, 0));
			dc.SelectObject(&pen);
			POINT center;
			POINT lineto;
			center.x = rect.left + rect.Width() / 2;
			center.y = rect.top + rect.Height() / 2;

			lineto.x = (LONG)(center.x - 60 * cosf(D3DXToRadian(m_nAngel)));
			lineto.y = (LONG)(center.y + 60 * sinf(D3DXToRadian(m_nAngel)));

			dc.FillRect(&rect, &CBrush(RGB(100, 100, 100)));

			dc.MoveTo(center);
			dc.LineTo(lineto);
		}
	}

//Exit0:
    CPropertyPage::OnTimer(uIDEvent);
}
Ejemplo n.º 17
0
void CAnimSetupDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Slider(pDX, IDC_SLIDER1, m_iTime);
	DDX_Control(pDX, IDC_SLIDER1, m_slider);
}
Ejemplo n.º 18
0
void CPPSound::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);

	DDX_Slider(pDX, IDC_PPSOUND_SCRL_MAXSOUNDS, m_iMaxSounds);
}
Ejemplo n.º 19
0
void CBaseDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);

	// 对话框数据更新,非模态对话框的数据必须为全局变量
	for (int i = 0; i < m_vecCtrl.size();i++)
	{
		switch (m_vecCtrl[i].type)
		{
		case BASE_EDIT_CSTRING:
		{
			if (m_vecCtrl[i].nID != 65535U && m_vecCtrl[i].pInOutData!=NULL)
			{
				DDX_Text(pDX, m_vecCtrl[i].nID, *(CString*)m_vecCtrl[i].pInOutData);
				DDV_MaxChars(pDX, *(CString*)m_vecCtrl[i].pInOutData, m_vecCtrl[i].nMaxChars);
			}
			break;
		}
		case BASE_EDIT_DOUBLE:
		{
			if (m_vecCtrl[i].nID != 65535U && m_vecCtrl[i].pInOutData != NULL)
			{
				DDX_Text(pDX, m_vecCtrl[i].nID, *(double*)m_vecCtrl[i].pInOutData);
				DDV_MinMaxDouble(pDX, *(double*)m_vecCtrl[i].pInOutData, m_vecCtrl[i].dMinVal, m_vecCtrl[i].dMaxVal);
			}
			break;
		}
		case BASE_CHECK_BUTTON:
		{
			if (m_vecCtrl[i].nID != 65535U && m_vecCtrl[i].pInOutData != NULL)
			{
				DDX_Check(pDX, m_vecCtrl[i].nID, *(BOOL*)m_vecCtrl[i].pInOutData);
			}
			break;
		}
		case BASE_COMBOBOX:
		{
			if (m_vecCtrl[i].nID != 65535U && m_vecCtrl[i].pInOutData != NULL)
			{
				DDX_CBString(pDX, m_vecCtrl[i].nID, *(CString*)m_vecCtrl[i].pInOutData);
				DDV_MaxChars(pDX, *(CString*)m_vecCtrl[i].pInOutData, m_vecCtrl[i].nMaxChars);
			}
			break;
		}
		case BASE_PROGRESS:
		{
			if (m_vecCtrl[i].nID != 65535U && m_vecCtrl[i].pInOutData != NULL)
			{
				DDX_Slider(pDX, m_vecCtrl[i].nID, *(int*)m_vecCtrl[i].pInOutData);
				DDV_MinMaxInt(pDX, *(int*)m_vecCtrl[i].pInOutData, m_vecCtrl[i].dMinVal, m_vecCtrl[i].dMaxVal);
			}
			break;
		}
		case BASE_SLIDER:
		{
			if (m_vecCtrl[i].nID != 65535U && m_vecCtrl[i].pInOutData != NULL)
			{
				DDX_Slider(pDX, m_vecCtrl[i].nID, *(int*)m_vecCtrl[i].pInOutData);
				DDV_MinMaxInt(pDX, *(int*)m_vecCtrl[i].pInOutData, m_vecCtrl[i].dMinVal, m_vecCtrl[i].dMaxVal);
			}
			break;
		}
		case BASE_SLIDER_GROUP:
		{
			if (m_vecCtrl[i].nID != 65535U && m_vecCtrl[i].pInOutData != NULL)
			{
				DDX_SliderGroup(pDX, m_vecCtrl[i].nID, *(int*)m_vecCtrl[i].pInOutData);
				DDV_MinMaxInt(pDX, *(int*)m_vecCtrl[i].pInOutData, m_vecCtrl[i].dMinVal, m_vecCtrl[i].dMaxVal);
			}
			break;
		}
		default:
			break;
		}
	}
}
void CMouseSensitivityDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_SLIDER1, m_sensitivityCtrl);
	DDX_Slider(pDX, IDC_SLIDER1, m_sensitivity);
}
Ejemplo n.º 21
0
void 
CPGRTransformDialog::DoDataExchange( CDataExchange* pDX )
{
   CDialog::DoDataExchange(pDX);
   //{{AFX_DATA_MAP(CPGRTransformDialog)
   DDX_Control(pDX, IDC_ZSLIDER, m_sliderZ);
   DDX_Control(pDX, IDC_YSLIDER, m_sliderY);
   DDX_Control(pDX, IDC_YAWSLIDER, m_sliderYaw);
   DDX_Control(pDX, IDC_XSLIDER, m_sliderX);
   DDX_Control(pDX, IDC_ROLLSLIDER, m_sliderRoll);
   DDX_Control(pDX, IDC_PITCHSLIDER, m_sliderPitch);
   DDX_Text(pDX, IDC_A0EDIT, m_dA0);
   DDV_MinMaxDouble(pDX, m_dA0, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_A1EDIT, m_dA1);
   DDV_MinMaxDouble(pDX, m_dA1, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_A2EDIT, m_dA2);
   DDV_MinMaxDouble(pDX, m_dA2, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_A3EDIT, m_dA3);
   DDV_MinMaxDouble(pDX, m_dA3, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_B0EDIT, m_dB0);
   DDV_MinMaxDouble(pDX, m_dB0, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_B1EDIT, m_dB1);
   DDV_MinMaxDouble(pDX, m_dB1, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_B2EDIT, m_dB2);
   DDV_MinMaxDouble(pDX, m_dB2, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_BEDIT3, m_dB3);
   DDV_MinMaxDouble(pDX, m_dB3, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_C0EDIT, m_dC0);
   DDV_MinMaxDouble(pDX, m_dC0, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_C1EDIT, m_dC1);
   DDV_MinMaxDouble(pDX, m_dC1, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_C2EDIT, m_dC2);
   DDV_MinMaxDouble(pDX, m_dC2, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_C3EDIT, m_dC3);
   DDV_MinMaxDouble(pDX, m_dC3, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_D0EDIT, m_dD0);
   DDV_MinMaxDouble(pDX, m_dD0, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_D1EDIT, m_dD1);
   DDV_MinMaxDouble(pDX, m_dD1, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_D2EDIT, m_dD2);
   DDV_MinMaxDouble(pDX, m_dD2, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_D3EDIT, m_dD3);
   DDV_MinMaxDouble(pDX, m_dD3, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_PITCHEDIT, m_dPitch);
   DDV_MinMaxDouble(pDX, m_dPitch, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_ROLLEDIT, m_dRoll);
   DDV_MinMaxDouble(pDX, m_dRoll, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_XEDIT, m_dX);
   DDV_MinMaxDouble(pDX, m_dX, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_YAWEDIT, m_dYaw);
   DDV_MinMaxDouble(pDX, m_dYaw, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_YEDIT, m_dY);
   DDV_MinMaxDouble(pDX, m_dY, -MAX_DIST, MAX_DIST);
   DDX_Text(pDX, IDC_ZEDIT, m_dZ);
   DDV_MinMaxDouble(pDX, m_dZ, -MAX_DIST, MAX_DIST);
   DDX_Slider(pDX, IDC_ROLLSLIDER, m_nRollSlider);
   DDX_Slider(pDX, IDC_XSLIDER, m_nXSlider);
   DDX_Slider(pDX, IDC_YAWSLIDER, m_nYawSlider);
   DDX_Slider(pDX, IDC_YSLIDER, m_nYSlider);
   DDX_Slider(pDX, IDC_ZSLIDER, m_nZSlider);
   DDX_Slider(pDX, IDC_PITCHSLIDER, m_nPitchSlider);
   //}}AFX_DATA_MAP
}