How do I place & character in dialog
-
Using Visual C++ 6.0 MFC in SDI application I would like to put the & symbol in a dialog window to save some space instead of using the word "and", but the compiler recognizes the & symbol as a special character to associate the next letter as a command key. How do I just get the symbol with no special operation associated with it into the dialog window? Thanks
-
Using Visual C++ 6.0 MFC in SDI application I would like to put the & symbol in a dialog window to save some space instead of using the word "and", but the compiler recognizes the & symbol as a special character to associate the next letter as a command key. How do I just get the symbol with no special operation associated with it into the dialog window? Thanks
Instead of single
&
, put&&
. For Instance for getting string like this -"B&utton"
put"B&&utton"
as caption. Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Using Visual C++ 6.0 MFC in SDI application I would like to put the & symbol in a dialog window to save some space instead of using the word "and", but the compiler recognizes the & symbol as a special character to associate the next letter as a command key. How do I just get the symbol with no special operation associated with it into the dialog window? Thanks
just double & one && two
-
Using Visual C++ 6.0 MFC in SDI application I would like to put the & symbol in a dialog window to save some space instead of using the word "and", but the compiler recognizes the & symbol as a special character to associate the next letter as a command key. How do I just get the symbol with no special operation associated with it into the dialog window? Thanks
Use && instead of &.
-
Use && instead of &.
Please read the other answers given to the OP before adding yours. :|
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP