How to get ampersand (&) into button text
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
I am trying to get an '&' character into the text of a button control, I can do this from the resource editor ok using "&&" but not programatically, i.e. btn.SetWindowText("Save && Exit"); doesn't work?! (nor does using just a single &)
Try this: CString csTemp; csTemp.Format(_T("Save \x26 Exit")); btn.SetWindowTexct(&csTemp); INTP
-
Try this: CString csTemp; csTemp.Format(_T("Save \x26 Exit")); btn.SetWindowTexct(&csTemp); INTP