Cristiano Ronaldo has become the top scorer in European Championship history after Portugal's 3-0 win over Hungary.