previousView->OnMessage(msg);
}
+ // Update it with the contents
+ UpdateContents(pNewView, item);
+
// and focus if necessary
if (hasFocus)
{
g_windowManager.SendMessage(msg);
}
- // Update it with the contents
- UpdateContents(pNewView, item);
-
// Update our view control
UpdateViewAsControl(((CGUIBaseContainer *)pNewView)->GetLabel());
}
virtual void OnLeft();
virtual void OnRight();
virtual bool OnMouseOver(const CPoint &point);
+ virtual bool CanFocus() const;
virtual bool OnMessage(CGUIMessage& message);
virtual void SetFocus(bool bOnOff);
virtual void AllocResources();