AfxMessageBox(), can it be modified?
Hi,
I need to know if it's at all possible to modify any of the button labels and/or return codes (ID_XXX) of AfxMessageBox(), since I dont want to write my own version of AfxMessageBox().
Not really *that* important, just asking though.
AfxMessageBox() was probably, only designed for certain uses. I want to know
if I can tweak it, just a little.
Thanks in advance.
Rossi.
==============================================
Allen Van Der Ross
Systems Programmer
Software Performance Improvement
South Africa
E-Mail: [email protected]
==============================================
Re: AfxMessageBox(), can it be modified?
Even I have a similar requirement, I want to enable more buttons like I need 2 Yes buttons with different options written on them, one No button and one cancel button..
Any idea how to customize it
Re: AfxMessageBox(), can it be modified?
Quote:
Originally Posted by
vcdebugger
Even I have a similar requirement, I want to enable more buttons like I need 2 Yes buttons with different options written on them, one No button and one cancel button..
Any idea how to customize it
Why bother trying to customize AfxNessageBix when it is easy enough to write your own dialog box?
Re: AfxMessageBox(), can it be modified?
Quote:
Originally Posted by
vcdebugger
Even I have a similar requirement, I want to enable more buttons like I need 2 Yes buttons with different options written on them, one No button and one cancel button..
Any idea how to customize it
Use a CBT hook.
See:
https://www.codeguru.com/cpp/w-p/win...essage-Box.htm
https://www.codeguru.com/cpp/w-p/win...MessageBox.htm
https://www.codeguru.com/cpp/w-p/win...n-Captions.htm