That was what happened in the Boer War. It didn't make the Boers see the British victory as a Good Thing. True, but then the Boer War wasn't a foreign war, and it hadn't been started by the Boers.