What does this quote mean?

“The heart that gives thanks is a happy one, for we cannot feel thankful and unhappy at the same time.” — Douglas Wood