void CVideoOptionsDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { CDialog::OnHScroll(nSBCode, nPos, pScrollBar); UpdateData(); m_iStaticQuality = m_iQuality; UpdateData(FALSE); if (m_cOpts.m_bAutoAdjust) UpdateAdjustSliderVal(); // TODO: This is not affected by the quality value! }
void CVideoOptionsDlg::RefreshAutoOptions() { m_ctrlEdiPlaybackRate.EnableWindow(!m_cOpts.m_bAutoAdjust); m_ctrlEditKeyFrameInterval.EnableWindow(!m_cOpts.m_bAutoAdjust); m_ctrlEditCaptureInterval.EnableWindow(!m_cOpts.m_bAutoAdjust); m_ctrlSliderAdjust.EnableWindow(m_cOpts.m_bAutoAdjust); if (m_cOpts.m_bAutoAdjust) { UpdateAdjustSliderVal(); } }
void CVideoOptions::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { // TODO: Add your message handler code here and/or call default int quality; CString qualitystr; quality = ((CSliderCtrl *) GetDlgItem(IDC_QUALITY_SLIDER))->GetPos(); qualitystr.Format("%d",quality); ((CStatic *) GetDlgItem(IDC_QUALITY))->SetWindowText(qualitystr); if (autoadjust) UpdateAdjustSliderVal() ; CDialog::OnHScroll(nSBCode, nPos, pScrollBar); }
void CVideoOptions::RefreshAutoOptions() { if (autoadjust) { ((CEdit *) GetDlgItem(IDC_FPS))->EnableWindow(FALSE); ((CEdit *) GetDlgItem(IDC_KEYFRAMES))->EnableWindow(FALSE); ((CEdit *) GetDlgItem(IDC_KEYFRAMES2))->EnableWindow(FALSE); ((CSliderCtrl *) GetDlgItem(IDC_ADJUST))->EnableWindow(TRUE); UpdateAdjustSliderVal(); } else { ((CEdit *) GetDlgItem(IDC_FPS))->EnableWindow(TRUE); ((CEdit *) GetDlgItem(IDC_KEYFRAMES))->EnableWindow(TRUE); ((CEdit *) GetDlgItem(IDC_KEYFRAMES2))->EnableWindow(TRUE); ((CSliderCtrl *) GetDlgItem(IDC_ADJUST))->EnableWindow(FALSE); } }