Example #1
0
//
// OnApplyChanges
//
// Apply any changes so far made
//
HRESULT CHandVuFilterProperties::OnApplyChanges()
{
  GetControlValues();
  m_pIHandVuFilter->SetHandVuFilterParams(m_params);

  return NOERROR;
} // OnApplyChanges
//
// OnApplyChanges
//
// Apply any changes so far made
//
HRESULT CMotionFilterProperties::OnApplyChanges()
{
    GetControlValues();
    m_pIPEffect->put_IPEffect(m_effect, m_start, m_length);

    return NOERROR;
} // OnApplyChanges
//
// OnApplyChanges
//
// Apply any changes so far made
//
HRESULT CAudioTransformFrameProperties::OnApplyChanges()
{
    GetControlValues();
    

    return NOERROR;
}
//
// OnDeactivate
//
// We are being deactivated
//
HRESULT CAudioTransformFrameProperties::OnDeactivate(void)
{
    ASSERT(m_pIZQAudioInterface);
    m_bIsInitialized = FALSE;
    GetControlValues();
    return NOERROR;
}
Example #5
0
//
// OnDeactivate
//
// We are being deactivated
//
HRESULT CHandVuFilterProperties::OnDeactivate(void)
{
  ASSERT(m_pIHandVuFilter);
  m_bIsInitialized = FALSE;
  GetControlValues();
  return NOERROR;

} // OnDeactivate
//
// OnDeactivate
//
// We are being deactivated
//
HRESULT CMotionFilterProperties::OnDeactivate(void)
{
    ASSERT(m_pIPEffect);
    m_bIsInitialized = FALSE;
    GetControlValues();
    return NOERROR;

} // OnDeactivate
Example #7
0
//=================================================
// Message Handlers
//=================================================
void CMainDlg::OnDestroy()
{
	CDialog::OnDestroy();
	GetControlValues();

	// Clean up CLSIDs in combobox
	CComboBox* pCombo = NULL;
	VERIFY(pCombo = (CComboBox*)GetDlgItem(IDC_IMAGE_EXT));
	while(pCombo->GetCount() > 0)
	{
		CLSID* pCLSID = (CLSID*)pCombo->GetItemData(0);
		delete pCLSID;
		pCombo->DeleteString(0);
	}
}
Example #8
0
//=================================================
// Helper Functions
//=================================================
CString CMainDlg::GetOutputFileName()
{
	CString strFile = _T("");
	
	GetControlValues();

	switch(m_iNamingOpt) 
	{
		case 0: // Use entered prefix
		{
			strFile = m_strImageName;
			break;
		}
		case 1: // Always ask for prefix
		{
			CGetDataDlg dlg;
			dlg.SetTitle(_T("Enter File Prefix"));
			if(dlg.DoModal() == IDOK)
				strFile = dlg.GetData();
			break;
		}
		case 2: // No prefix
			break;
	}
	if(strFile.GetLength() > 0)
		strFile += _T("_");

	// Add time stamp
	COleDateTime dtNow = COleDateTime::GetCurrentTime();
	CString strDT = dtNow.Format(_T("%d-%m-%y_%H-%M-%S"));
	strFile += strDT;

	// Add file extension
	//strFile += _T(".jpg");
	CComboBox* pCombo = NULL;
	VERIFY(pCombo = (CComboBox*)GetDlgItem(IDC_IMAGE_EXT));
    strFile += _T(".");
	CString strExt = _T("");
	pCombo->GetWindowText(strExt);
	strFile += strExt;

	return strFile;
}