Homologous traits are similar because they are derived from a common ancestor, while analogous traits are similar because natural selection (Darwin) has favored similar adaptations to similar environments.
In the example you gave, wings of bats and birds- also eyes in fish v/s say eyes in octopus or the eyes of crocodiles v/s hippos, the similarity in the traits is due to convergent evolution, not descent from a common ancestor.
Afele, does this make the muddy water clear?
Did it answer your question.
The above post is how i understand the stuff, i could be proven wrong.
MMBell