Use ::MessageBox() instead. I am not sure if you can easily change the title using AfxMessageBox.