mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-23 23:13:12 +08:00
Add wxRegKey::GetHkey()
Provide access to the underlying HKEY, especially as we already allow setting it.
This commit is contained in:
@@ -139,6 +139,8 @@ public:
|
||||
bool IsOpened() const { return m_hKey != nullptr; }
|
||||
// for "if ( !key ) wxLogError(...)" kind of expressions
|
||||
operator bool() const { return m_dwLastError == 0; }
|
||||
// return the associated HKEY, possibly null if the key is not opened
|
||||
WXHKEY GetHkey() const { return m_hKey; }
|
||||
|
||||
// operations on the key itself
|
||||
// explicitly open the key (will be automatically done by all functions
|
||||
|
||||
@@ -236,6 +236,15 @@ public:
|
||||
*/
|
||||
bool GetFirstValue(wxString& strValueName, long& lIndex);
|
||||
|
||||
/**
|
||||
Return the associated HKEY handle.
|
||||
|
||||
It may be null if the key is not opened.
|
||||
|
||||
@since 3.3.1
|
||||
*/
|
||||
WXHKEY GetHkey() const;
|
||||
|
||||
/**
|
||||
Gets information about the key. Returns @true if successful.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user