Implemented: default settings, loading settings from registry key, settings for prompt, normal text colors and command text colors.

svn path=/trunk/; revision=1801
This commit is contained in:
Nedko Arnaudov 2001-04-16 05:03:29 +00:00
parent 2b246092f3
commit 7f0a6dcd48
2 changed files with 169 additions and 0 deletions

View file

@ -0,0 +1,23 @@
/* $Id: Settings.h,v 1.1 2001/04/16 05:03:29 narnaoud Exp $ */
#ifndef OPTIONS_H__a7382d2d_96b4_4472_974d_801281bd5327___INCLUDED
#define OPTIONS_H__a7382d2d_96b4_4472_974d_801281bd5327___INCLUDED
class CSettings
{
public:
CSettings();
~CSettings();
HRESULT Load(LPCTSTR pszLoadKey);
HRESULT Store(LPCTSTR pszStoreKey);
LPCTSTR GetPrompt();
WORD GetNormalTextAttributes();
WORD GetPromptTextAttributes();
private:
HRESULT Clean();
LPTSTR m_pszPrompt;
WORD m_wNormalTextAttributes;
WORD m_wPromptTextAttributes;
};
#endif // #ifndef OPTIONS_H__a7382d2d_96b4_4472_974d_801281bd5327___INCLUDED