While the assumption is that alcohol will be cooked off, there are other factors that need to be considered. The amount of wine used in cooking is one of them; the more wine used, the longer it takes to cook in order for alcohol to be dissipated. Another point to consider would be, the method of cooking - since alcohol evaporates at around 78degC, simmering and boiling should be hot enough for alcohol to evaporate. However, recent studies have shown that not all alcohol will be cooked off:
http://www.todayifoundout.com/index.php/2011/11/alcohol-doesnt-really-cook-out-of-food-in-most-cases/
If you are breastfeeding, it is recommended to breastfeed 2 to 3 hours after consumption of alcohol or foods cooked with alcohol just to be safe.