|
/********************************************************************
created: 2001/11/09
created: 9:11:2001 13:39
filename: E:\MY PROJECTS\ADD-ON\TODOCACHED\DIALOGS\dlg_init.h
file path: E:\MY PROJECTS\ADD-ON\TODOCACHED\DIALOGS
file base: dlg_init
file ext: h
author: Alex Kucherenko
purpose:
*********************************************************************/
#ifndef _DIALOGS_INITIALIZE_SETTINGS_INTO_REGISRTY_
#define _DIALOGS_INITIALIZE_SETTINGS_INTO_REGISRTY_
#pragma once
#include "regRegistryEx.h"
class CInitDialogImpl
{
public:
CInitDialogImpl( string &DialogName, CRegistryEx *pReg = NULL );
CInitDialogImpl( const char *czDlgName, CRegistryEx *pReg = NULL );
virtual ~CInitDialogImpl();
void SetRegistry( CRegistryEx *pReg )
{
m_pRegistry = pReg;
};
void RestoreDialogPos( HWND hWnd );
void CaptureDialogPos( HWND hWnd );
protected:
string m_strDlgName;
CRegistryEx *m_pRegistry;
CRect m_cInitPos;
long GetDlgItemNValue( const string &name );
long GetDlgItemNValue( const char *czName );
string &GetDlgItemValue( const string &name );
string &GetDlgItemValue( const char *czName );
void SetDlgItemNParam( const string &name, long lValue );
void SetDlgItemNParam( const char *czName, long lValue );
void SetDlgItemParam( const string &name, const string &value );
void SetDlgItemParam( const char *czName, const char *czValue );
virtual void GetStartPos();
virtual void SetStartPos();
virtual void GetInitSettings();
virtual void SetInitSettings();
};
#endif // _DIALOGS_INITIALIZE_SETTINGS_INTO_REGISRTY_
|
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.