I'm trying to figure out this Unicode thing and it isn't working. I can get Unicode text to display in a CRichEdit control but nothing else. This is what I am using in other controls and it just gives me garbage:
I know that with a Rich Edit control I have to be using version 2.0 and I have to use some special messages to set the text. Is this the same way? If so what messages do I use?Code:m_cStatic.SetWindowText(m_sUnicodeText); m_cLictBox.SetWindowText(m_sUnicodeText); m_cGroupBox.SetWindowText(m_sUnicodeText); m_cEdit.SetWindowText(m_sUnicodeText); m_cComboBox.SetWindowText(m_sUnicodeText); m_cCheckBox.SetWindowText(m_sUnicodeText); m_cButton.SetWindowText(m_sUnicodeText);
P.S. Yes I have it set up with UNICODE and _UNICODE and I don't have _MBCS defined and I am using LPCTSTR and TCHAR and _T() etc.




Reply With Quote