+bool wxScrollBar::AcceptsFocus() const
+{
+ if (!wxWindow::AcceptsFocus()) return FALSE;
+
+ wxWindow *parent = (wxWindow*) GetParent();
+
+ if (parent)
+ {
+ if ((parent->GetScrollbar( wxHORIZONTAL ) == this) ||
+ (parent->GetScrollbar( wxVERTICAL ) == this))
+ {
+ return FALSE;
+ }
+ }
+
+ return TRUE;
+}
+