CButton caption problem

Go4Expert Member
12Apr2009,15:18   #1
shobhit_ra's Avatar
Hello I have set some Text in the caprion property of Button in MFC dialog based application with the & (apmersand symbol)
example- Sh&ow message.
But it is not showing the Underscore below 'O' letter.

Please suggest the solution. Where I am wrong?
Go4Expert Founder
12Apr2009,17:33   #2
shabbir's Avatar
& hold a special symbol for Alt key shortcut and you need to escape the character using double &&
Go4Expert Member
13Apr2009,10:26   #3
shobhit_ra's Avatar
Hi Shabbir
Thanks
But it is not the solution.

I have to show the text on Button with the Underscore symbol.

&& is not working instead it is showing the text like &Hello. And single & is not showing the Underscore below any letter.

Please suggest.
Go4Expert Founder
13Apr2009,11:32   #4
shabbir's Avatar
Now Single & what does it show for you because for me it show as Hello