X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4de6207afa9a78be63fe93df44ff5b90cecd2781..aeb040bfaf18428d03277a55328fcba937e0d921:/include/wx/msw/registry.h?ds=sidebyside diff --git a/include/wx/msw/registry.h b/include/wx/msw/registry.h index 3bdce82bca..958b78c878 100644 --- a/include/wx/msw/registry.h +++ b/include/wx/msw/registry.h @@ -125,7 +125,7 @@ public: bool Exists() const; // get the info about key (any number of these pointers may be NULL) -#ifdef __GNUWIN32__ +#if defined( __GNUWIN32__) && !defined(wxUSE_NORLANDER_HEADERS) bool GetKeyInfo(size_t *pnSubKeys, // number of subkeys size_t *pnMaxKeyLen, // max len of subkey name size_t *pnValues, // number of values @@ -187,11 +187,15 @@ public: // query existence of a key/value // return true if value exists - bool HasValue(const wxChar *szKey) const; + bool HasValue(const wxChar *szKey) const; // return true if given subkey exists - bool HasSubKey(const wxChar *szKey) const; + bool HasSubKey(const wxChar *szKey) const; // return true if any subkeys exist - bool HasSubkeys() const; + bool HasSubkeys() const; + // return true if any values exist + bool HasValues() const; + // return true if the key is empty (nothing under this key) + bool IsEmpty() const { return !HasSubkeys() && !HasValues(); } // enumerate values and subkeys bool GetFirstValue(wxString& strValueName, long& lIndex);