I think it was in the Sue Barton, Student Nurse, books where the nursing students were told they had to stand when a doctor entered the room. The students were puzzled, because they were all female and the doctors were all male (the books were written in the 1930s-1950s). The reason given is that it is a sign of respect to the doctors. I think that's the only instance I know of where women were to stand up for men.
At restaurants, the entire restaurant would not stand up if a woman entered. It was only if a woman stopped at your table that a gentleman would have to stand.
And the context was key. In a huge ballroom, men would stand if a woman stopped near them, but not if someone entered the room 50 feet away. In a house with a small living room, probably every man would stand up if a lady entered. But in a house with a huge living room, probably only the men near the door would stand.