Yes, it's called passive aggressiveness. Many times people judge our experiences and trials and think they know best and will let you know in no uncertain terms, whether disguised as advice or not. It happened to me just the other day on facebook by a so-called good friend. I had shared a trial and she took it upon herself to chew me out for failing to confide in her, ending with something along the lines that she was there for me and call. I know she would say she was trying to let me know she was ready to be supportive. But what she did was make it about her and her hurt feelings that I didn't confide in her. It was humiliating being on a public place so I took off her remark, which I doubt she will realize.
When people are hurting is not the time to lecture, chastise, be judgmental in how you got into the trial or how you are handling it. It's about seeing that a friend is hurting and offering support. You may be saying something truthful to the friend, but there is a time and a place for those remarks and often times it is not the time or place. Good question Midget.