Wetting and layering in critical binary fluid mixtures