Exemple #1
0
void CMonitorWnd::Apply()
{
	CRegistry pRegistry;
	
	DWORD nPayloadMask = pRegistry.GetInt( "Monitor", "RecMask", RecordPayload(PayloadMask_Audio) );
	pRegistry.SetInt( "Monitor", "RecMask", nPayloadMask );
}
Exemple #2
0
void CMonitorWnd::OnMediaRecMask() 
{
	CRegistry pRegistry;
	DWORD nPayloadMask = pRegistry.GetInt( "Monitor", "RecMask" );
	
	pRegistry.SetInt( "Monitor", "RecMask", RecordPayload(nPayloadMask) ^ PayloadMask_Video );
}
BOOL CPlaySettingsPage::EditSettings() 
{
	CString strValue;
	CRegistry pRegistry;
	
	m_wndRetry.GetWindowText( strValue );
	pRegistry.SetInt( "Profit", "PlayRetry", FormatTimeValue( strValue ) );
	
	return TRUE;
}
Exemple #4
0
void CSettings::Item::Save()
{
	CRegistry pRegistry;
	
	int nPos = m_sName.Find( '.' );
	if ( nPos < 0 ) return;

	if ( m_pDword )
	{
		pRegistry.SetInt( m_sName.Left( nPos ), m_sName.Mid( nPos + 1 ), *m_pDword );
	}
	else if ( m_pFloat )
	{
		CString str;
		str.Format( _T("%e"), *m_pFloat );
		pRegistry.SetString( m_sName.Left( nPos ), m_sName.Mid( nPos + 1 ), str );
	}
	else
	{
		pRegistry.SetString( m_sName.Left( nPos ), m_sName.Mid( nPos + 1 ), *m_pString );
	}
}