AfxMessageBox
-
Hi, When i include AfxMessageBox i get exit icon on the top right side of the message box, Is there any way to remove that. Thanks in advance
shir_k wrote:
Is there any way to remove that.
My guess is, not without also removing the caption. You could always roll your own message box.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi, When i include AfxMessageBox i get exit icon on the top right side of the message box, Is there any way to remove that. Thanks in advance
Yes, there is probably a way to remove it (I think you have to look at how to remove the system menu or something like that). But the question I'm asking is why do you want to remove it ? it's part of the normal Windows UI guidelines.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
shir_k wrote:
Is there any way to remove that.
My guess is, not without also removing the caption. You could always roll your own message box.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Yes, there is probably a way to remove it (I think you have to look at how to remove the system menu or something like that). But the question I'm asking is why do you want to remove it ? it's part of the normal Windows UI guidelines.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
I just want to pop up a message to the user indicating "data is going to load please wait for sometime", It is just a information and data will be loaded even if user press "OK" or cancel button so i wanted to remove it.
It sounds like you want a modeless diaog instead so that the main thread is not blocked.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I just want to pop up a message to the user indicating "data is going to load please wait for sometime", It is just a information and data will be loaded even if user press "OK" or cancel button so i wanted to remove it.
So, there are no specific requirements to remove the "X" in the caption, so just leave it like that and concentrate on the the real features and/or other technical challenges that you might have.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
Hi, When i include AfxMessageBox i get exit icon on the top right side of the message box, Is there any way to remove that. Thanks in advance
Any message box that can be dismissed with ESC will have a close button. That's just how it works.
--Mike-- Visual C++ MVP :cool: LINKS~! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen
-
I just want to pop up a message to the user indicating "data is going to load please wait for sometime", It is just a information and data will be loaded even if user press "OK" or cancel button so i wanted to remove it.
Then why can't you use progress bar ?? Regards, Paresh.
-
I just want to pop up a message to the user indicating "data is going to load please wait for sometime", It is just a information and data will be loaded even if user press "OK" or cancel button so i wanted to remove it.
Click on the X button will give you back the IDCANCEL return value, as if you had pressed ESC or "Cancel" button.
Greetings. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson