Wetting of the container wall as a critical-point phenomenon