#define LOCAL_MASK 0x8000
#define IS_LOCAL_INDEX(l) (((l) & LOCAL_MASK) != 0)
-bool wxRegConfig::GetFirstGroup(wxString& str, long& lIndex) const
+bool wxRegConfig::GetFirstGroup(wxString& str, long& lIndex)
{
lIndex = 0;
return GetNextGroup(str, lIndex);
}
-bool wxRegConfig::GetNextGroup(wxString& str, long& lIndex) const
+bool wxRegConfig::GetNextGroup(wxString& str, long& lIndex)
{
// are we already enumerating local entries?
if ( m_keyGlobal.IsOpened() && !IS_LOCAL_INDEX(lIndex) ) {
return bOk;
}
-bool wxRegConfig::GetFirstEntry(wxString& str, long& lIndex) const
+bool wxRegConfig::GetFirstEntry(wxString& str, long& lIndex)
{
lIndex = 0;
return GetNextEntry(str, lIndex);
}
-bool wxRegConfig::GetNextEntry(wxString& str, long& lIndex) const
+bool wxRegConfig::GetNextEntry(wxString& str, long& lIndex)
{
// are we already enumerating local entries?
if ( m_keyGlobal.IsOpened() && !IS_LOCAL_INDEX(lIndex) ) {
return bOk;
}
-uint wxRegConfig::GetNumberOfEntries() const
+uint wxRegConfig::GetNumberOfEntries(bool bRecursive) const
{
uint nEntries = 0;
// dummy vars
wxString str;
long l;
- bool bCont = GetFirstEntry(str, l);
+ bool bCont = ((wxRegConfig*)this)->GetFirstEntry(str, l);
while ( bCont ) {
nEntries++;
- bCont = GetNextEntry(str, l);
+ bCont = ((wxRegConfig*)this)->GetNextEntry(str, l);
}
return nEntries;
}
-uint wxRegConfig::GetNumberOfGroups() const
+uint wxRegConfig::GetNumberOfGroups(bool bRecursive) const
{
uint nGroups = 0;
// dummy vars
wxString str;
long l;
- bool bCont = GetFirstGroup(str, l);
+ bool bCont = ((wxRegConfig*)this)->GetFirstGroup(str, l);
while ( bCont ) {
nGroups++;
- bCont = GetNextGroup(str, l);
+ bCont = ((wxRegConfig*)this)->GetNextGroup(str, l);
}
return nGroups;
#include "wx/app.h"
#include "wx/msw/private.h"
+// Styles
#ifndef TBSTYLE_FLAT
#define TBSTYLE_LIST 0x1000
#define TBSTYLE_FLAT 0x0800
#endif
// use TBSTYLE_TRANSPARENT if you use TBSTYLE_FLAT
+// Messages
+#ifndef TB_GETSTYLE
+#define TB_GETSTYLE (WM_USER + 57)
+#define TB_SETSTYLE (WM_USER + 56)
+#endif
+
+/* Hint from a newsgroup for custom flatbar drawing:
+Set the TBSTYLE_CUSTOMERASE style, then handle the
+NM_CUSTOMDRAW message and do your custom drawing.
+*/
+
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxToolBar95, wxToolBarBase)