Dealing with announcements

Someone I know just announced their pregnancy. I am almost in tears since it reminds me that I am not. I was pregnant and lost the baby in 7 weeks. I am still upset emotionally and haven't gotten over my loss..
Is there a way to deal with announcements and actually be happy for other pregnant women?