I would use const references instead of copies for strCaptionText and strMessageText, and bool instead of BOOL. But I can live with it.