My Requirement Is:
I am using MFC Dialog Based application and here I want to set the title of the dialog with Japanese string.
Below is my code snippet:
CStringW str; // Using CStringW to support unicode characters
CTestofUTF83Dlg dlg; // CTestofUTF83Dlg is my dialog class that is derived
//from CDialog
str.LoadString(IDC_TESTJAPAN); // IDC_TESTJAPAN contains my Japanese string
SetDlgItemTextW(dlg,IDD_TESTOFUTF83_DIALOG,str); // IDD_TESTOFUTF83_DIALOG is the ID of my Dialog
With the above code, the Dialog box Title is not reflecting the Japanese string.
I think it is due to the first parameter of the SetDlgItemTextW, i.e., Handle to the dialog (dlg).
Because, if I use SetDlgItemText() function I am able to set the title.
Please Help me.