Change the AfxMessageBox dialog box title

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.