reg Display in static control with UNICODE aware project!!!
-
Hi, My Project is set to unicode aware, and it is fine. But when i am go for displaying a text in static control in run time, like CStatic *p = (CStatic *)GetDlgItem (IDC_STATIC1); p->SetWindowText ("&Login"); The text on static control should display the text as Login and the letter "L" should accompany a underline; It is working fine with MBCS projects but not with UNICODE, How to resolve this issue? Anyone please help, :confused:
Thanks in advance!!!!
-
Hi, My Project is set to unicode aware, and it is fine. But when i am go for displaying a text in static control in run time, like CStatic *p = (CStatic *)GetDlgItem (IDC_STATIC1); p->SetWindowText ("&Login"); The text on static control should display the text as Login and the letter "L" should accompany a underline; It is working fine with MBCS projects but not with UNICODE, How to resolve this issue? Anyone please help, :confused:
Thanks in advance!!!!
ganesa moorthy wrote:
It is working fine with MBCS projects but not with UNICODE
Please when you have a problem, give a clear description. It's not working is quite vague, there could be a lot of different situations. I suppose here that your code doesn't compile. Add a _T macro in front of your string literal:
p->SetWindowText (_T("&Login"));
Cédric Moonen Software developer
Charting control [v1.3] -
ganesa moorthy wrote:
It is working fine with MBCS projects but not with UNICODE
Please when you have a problem, give a clear description. It's not working is quite vague, there could be a lot of different situations. I suppose here that your code doesn't compile. Add a _T macro in front of your string literal:
p->SetWindowText (_T("&Login"));
Cédric Moonen Software developer
Charting control [v1.3]it is fine if i give p->SetWindowText(L"&Login");, Thanks a lot once again! :)
Thanks a lot