I use AfxMessageBox to display msgbox.
How can i change title caption of this box?
Currently the only solution i found is rename the .exe file.
But i can't because i need to have different msgbox title.
Thank you
Visual C++.NET
Last Comment
Svetlin_Panayotov
8/22/2022 - Mon
AlexFM
Use MessageBox API or CWnd::MessageBox function.
AlexFM
::MessageBox(hWnd, _T("Text"), _T("Title), MB_OK); // you can use NULL instead of hWnd
In MFC CWnd-derived class you can write:
MessageBox(T("Text"), _T("Title), MB_OK);
mammouth
ASKER
In the 2 case, i get error:
error C2146: syntax error : missing ';' before identifier 'theApp'
error C2501: 'theApp' : missing storage-class or type specifiers