Change the AfxMessageBox dialog box title
The company asks the dialog box question unification, but in our project most is uses the Afxmessagebox,afxmessagebox but did not change the title this attribute, the eldest brother asked me to replace all AfxMessageBox to MessageBox, MessageBox can also be implemented, the second parameter is to set the title property, with MessageBox two points is not good:
First, the app is not to use MessageBox, so as long as in the app with AfxMessageBox to achieve, this approach is not workable.
Second, because the project is large, it is also very complicated to modify, so that the time does not say, there may be artificial modification errors.
On the Internet to check some information, learned that AfxMessageBox in fact is also called MessageBox. Personal reasons AfxMessageBox is MessageBox simplification, easy to use. It is also possible to change the title by customizing it. However, I finally adopted the easiest way to save time and the simplest:
In fact, this title, which is our default project name, how should we change the title on the basis of not changing the project name? In fact, the title can be found in resource string table, looking for afx_ids_app_title, where you can easily change the title.