When my children would be angry or frustrated with me I would tell them they can think whatever it is they want to think.  But they better mind what it is they say out loud to me.  I never wanted to control their thoughts, but I wanted them to know there were consequences, good and/or bad, to what they said.