thrush

Hey mommas, I think my baby has a mild case of thrush.  He has a few small white patches on his lip/inside of his mouth.  I'm going to take him to the doctor to get looked at but I'm wondering if any of you have tips for battling it.  What worked for you to beat the thrush?
 I don't know if I have it (I breastfeed) but a month or two ago I did have a few days where I was having bad pains while breastfeeding.  It has stopped for awhile, though.