The wetting behavior of alkanes of medium chain length (e.g., pentane, hexane, and heptane) on water is more complex than the usually observed first-order wetting transition from partial to complete wetting by showing a sequence of two transitions. In this sequential-wetting scenario, a first-order transition from a microscopically thin to a mesoscopically thick layer of liquid on the substrate surface is followed by a continuous divergence of the film thickness upon increase of the temperature. This critical transition to complete wetting at T(w,c) is solely determined by long-range interactions between substrate and adsorbate, which are well-described by Dzyaloshinskii-Lifshitz-Pitaevskii [Adv. Phys. 10, 165 (1961)] theory in terms of the static dielectric constants and the refractive indices of the media involved. The first-order thin-thick transition, however, which occurs at a lower temperature T(w,1), results from an interplay of short-range and long-range forces and is notoriously more difficult to describe because a satisfactory theory of the short-range interactions between substrate and adsorbate is still missing. The approach presented in this paper attempts to account for the short-range interactions in an effective way: Within a Cahn-type [J. Chem. Phys. 66, 3667 (1977)] theory that has been augmented for long-range interactions and modified to treat the first layer of adsorbed molecules in a lattice-gas approach, the contact energy is deduced from the surface pressure, which in turn is calculated using a two-dimensional van der Waals equation of state and an expression for the Henry's law constant that was derived by Hirasaki [J. Adhes. Sci. Technol. 7, 285 (1993)]. The method uses only the dielectric properties of the isolated bulk media and simple assumptions on the size and the shape of the adsorbed alkane molecules and leads to satisfactory results for the transition temperatures T(w,1) and T(w,c).