1. registry files corresponding to the recent registry.h changes

2. badly famous wxRegConfig::DeleteAll() bug corrected


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-01-23 23:50:24 +00:00
parent 8801e78f99
commit 90186e524e
4 changed files with 40 additions and 17 deletions

View File

@@ -160,7 +160,21 @@ public:
// access to values and subkeys
// get value type
ValueType GetValueType(const char *szValue);
ValueType GetValueType(const char *szValue) const;
// returns TRUE if the value contains a number (else it's some string)
bool IsNumericValue(const char *szValue) const
{
ValueType type = GetValueType(szValue);
switch ( type ) {
case Type_Dword:
case Type_Dword_little_endian:
case Type_Dword_big_endian:
return TRUE;
default:
return FALSE;
}
}
// assignment operators set the default value of the key
wxRegKey& operator=(const wxString& strValue)