#include "wx/log.h"
#include "wx/event.h"
#include "wx/window.h"
-#endif //WX_PRECOMP
-
-#include "wx/containr.h"
-
-#ifdef __WXMAC__
#include "wx/scrolbar.h"
-#endif
-
-#ifdef __WXMSW__
#include "wx/radiobut.h"
-#endif
+ #include "wx/containr.h"
+#endif //WX_PRECOMP
// trace mask for focus messages
#define TRACE_FOCUS _T("focus")
wxControlContainer::wxControlContainer(wxWindow *winParent)
{
m_winParent = winParent;
-
- m_winLastFocused =
- m_winTmpDefault =
- m_winDefault = NULL;
+ m_winLastFocused = NULL;
m_inSetFocus = false;
}
for ( ;; )
{
// don't go into infinite loop
- if ( start_node && node == start_node )
+ if ( start_node && node && node == start_node )
break;
// Have we come to the last or first item on the panel?
{
if ( child == m_winLastFocused )
m_winLastFocused = NULL;
-
- if ( child == m_winDefault )
- m_winDefault = NULL;
-
- if ( child == m_winTmpDefault )
- m_winTmpDefault = NULL;
}
// ----------------------------------------------------------------------------
return false;
}
-