CButton caption problem

shobhit_ra's Avatar, Join Date: Apr 2009
Go4Expert Member
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?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
& hold a special symbol for Alt key shortcut and you need to escape the character using double &&
0
shobhit_ra's Avatar, Join Date: Apr 2009
Go4Expert Member
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.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Now Single & what does it show for you because for me it show as Hello