How to Place a Different Caption in the AfxMessageBox(,) MFC messagebox
-
I have copied one of my programs into another program and made the necessary changes for the new program. But whenever I open a AfxMessageBox(,); it displayes the previous program's title in the title portion of the message box. How do I remedy this? Sample code: CString str = "Select the [OK] button to begin processing the data"; int nTest = 0; nTest = AfxMessageBox(str, MB_OK); (The title of the messagebox is that of the previous program.)
A C++ programming language novice, but striving to learn
-
I have copied one of my programs into another program and made the necessary changes for the new program. But whenever I open a AfxMessageBox(,); it displayes the previous program's title in the title portion of the message box. How do I remedy this? Sample code: CString str = "Select the [OK] button to begin processing the data"; int nTest = 0; nTest = AfxMessageBox(str, MB_OK); (The title of the messagebox is that of the previous program.)
A C++ programming language novice, but striving to learn
-
Is this a CWinApp based application? If so...what is the value of the string in your project with resource ID AFX_IDS_APP_TITLE? CWinApp::m_pszAppName[^] Best Wishes, -David Delaune
Yes, this fixed my needs. Thank you!
A C++ programming language novice, but striving to learn