How to change caption of window, using AfxMessageBox()..

  • Thread starter Thread starter Jigar Mehta
  • Start date Start date
J

Jigar Mehta

Hye,
I am Jigar Mehta, currently, I am using AfxMessageBox where I need to
change the caption of the messagebox using that function only... What I get
is,
the project name as the caption. I don't want to show my codename of the
project to people in my final product, so, I want to change the caption of
the messagebox to some different.

so, how to do that??? is there any parameter which does this thing ???
 
That's what I want to say, that Afx is in the thread which does not have MFC
support., So, I can not use MessageBox function... I want to ask whether
there is any way of changing caption in AfxMessageBox function or not...

Jigar Mehta
(e-mail address removed)

use MessageBox instead
 
Oh Thanks for suggestion... I will work on that...

Thanks again...

Jigar Mehta
(e-mail address removed)

Hi,
The name of the title in AfxMessageBox will be same as the value in the
variable m_pszAppName which is part of CWinApp. So change the value of this
in InitInstance so as to change the caption.

Balaji
 
Back
Top