Hungary's policy towards migrants will not stop the flow of people, Croatia's Prime Minister Zoran Milanovic says, during a visit to a migrant reception centre.