-
April 13th, 1999, 06:15 AM
#1
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: allen@ct.spi.co.za
==============================================
-
August 23rd, 2020, 05:25 AM
#2
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
-
August 23rd, 2020, 08:43 AM
#3
Re: AfxMessageBox(), can it be modified?
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?
-
August 23rd, 2020, 09:34 AM
#4
Re: AfxMessageBox(), can it be modified?
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
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|