|
// RegistrySettings.cpp: implementation of the CRegistrySettings class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "mci.h"
#include "RegistrySettings.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CRegistrySettings::CRegistrySettings()
{
pApp=AfxGetApp();
}
CRegistrySettings::~CRegistrySettings()
{
}
int CRegistrySettings::GetPlayLoop()
{
return pApp->GetProfileInt("Play","Loop",0);
}
int CRegistrySettings::GetPlayAutoStart()
{
return pApp->GetProfileInt("Play","AutoStart",0);
}
int CRegistrySettings::GetPlayRewind()
{
return pApp->GetProfileInt("Play","Rewind",0);
}
int CRegistrySettings::GetSettingsVolume()
{
return pApp->GetProfileInt("Settings","Volume",1000);
}
void CRegistrySettings::SetPlayLoop(int iEntry)
{
pApp->WriteProfileInt("Play","Loop",iEntry);
}
void CRegistrySettings::SetPlayAutoStart(int iEntry)
{
pApp->WriteProfileInt("Play","AutoStart",iEntry);
}
void CRegistrySettings::SetPlayRewind(int iEntry)
{
pApp->WriteProfileInt("Play","Rewind",iEntry);
}
void CRegistrySettings::SetSettingsVolume(int iEntry)
{
pApp->WriteProfileInt("Settings","Volume",iEntry);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.