Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello,
I want to put a messagebox (using the winapi method MessageBox), and show a sign of a hand (like a stop sign).
I tried to use the parameters MB_ICONSTOP and MB_ICONHAND, but both of them show the same icon, and it's an icon with a big X.
How can I show this stop-hand icon?

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 26-Dec-11 13:27pm    
This is written in message box documentation. Griff's answer is correct. Why would you need that ugly hand? People at Microsoft finally figured out it's bad, now it's your turn... :-)
--SA

You can't.
MB_ICONSTOP and MB_ICONHAND have the same value (hex 10) and will always display the same symbol.
AFAIK, the old Hand icon for "Stop!" was removed quite a while ago in favour of the Red X and is no longer available.

If you want to emulate it, you will have to create your own MessageBox form, and add your own image.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Dec-11 13:25pm    
Correct, a 5.
--SA
Albert Holguin 27-Dec-11 2:36am    
+5, I didn't know it was gone but I guess I never missed it... :)
ThatsAlok 28-Dec-11 1:58am    
Yeap +5 Dude :-)
Here at CodeProject there are many articles about MessageBox, this one, namely "How to change the MessageBox window (Add controls and change texts)?"[^] looks promising.
 
Share this answer
 
MessageBoxIndirect allows you to designate any icon resource for the message box.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900