Add SetActivated to GuiDevice.
Implement a VS2010 compatible macro const_foreach to iterate over const containers. Use it instead of range-for.