Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: executing programs Pin
Justin Somerville8-Oct-01 3:35
Justin Somerville8-Oct-01 3:35 
GeneralRe: executing programs Pin
Michael Martin8-Oct-01 3:50
professionalMichael Martin8-Oct-01 3:50 
GeneralRe: executing programs Pin
8-Oct-01 3:57
suss8-Oct-01 3:57 
GeneralRe: executing programs Pin
Christian Graus8-Oct-01 11:28
protectorChristian Graus8-Oct-01 11:28 
GeneralRe: executing programs Pin
8-Oct-01 3:52
suss8-Oct-01 3:52 
GeneralRe: executing programs Pin
Tomasz Sowinski8-Oct-01 3:50
Tomasz Sowinski8-Oct-01 3:50 
GeneralRe: executing programs Pin
8-Oct-01 3:59
suss8-Oct-01 3:59 
GeneralCan't change charset in a CListCtrl Pin
Stephen Wilson7-Oct-01 23:25
Stephen Wilson7-Oct-01 23:25 
Hello everyone,

I'm trying to set the charset of my CListCtrl to Turkish. Nothing complicated about the code:

CFont* pFont = new CFont;
pFont->CreateFont(12, 0, 0, 0, 0, 0, 0, 0,
TURKISH_CHARSET, 0, 0, 0, 0, "Verdana");
m_listCtrl.SetFont(pFont, TRUE);

But it doesn't work! It goes to Verdana okay, but the charset is just the standard one, not Turkish. It's quite bizarre: when I get its font later (with SendMessage(WM_GETFONT)) and look at the properties with GetLogFont, the lfCharSet IS equal to TURKISH_CHARSET. But there's no evidence of that in the way characters display in the CListCtrl.

I found a post about this exact same problem from a while ago, wrote to the guy, but apparently he found no solution.

If anyone can tell me if I'm doing something wrong, or suggest a workaround, I would be very greatful.

best regards,

Stephen Wilson

GeneralRe: Can't change charset in a CListCtrl Pin
Masaaki Onishi8-Oct-01 4:36
Masaaki Onishi8-Oct-01 4:36 
GeneralRe: Can't change charset in a CListCtrl Pin
Stephen Wilson8-Oct-01 5:37
Stephen Wilson8-Oct-01 5:37 
GeneralRe: Can't change charset in a CListCtrl Pin
Tomasz Sowinski8-Oct-01 7:26
Tomasz Sowinski8-Oct-01 7:26 
GeneralRe: Can't change charset in a CListCtrl Pin
Stephen Wilson8-Oct-01 10:57
Stephen Wilson8-Oct-01 10:57 
GeneralRe: Can't change charset in a CListCtrl Pin
Tomasz Sowinski8-Oct-01 11:10
Tomasz Sowinski8-Oct-01 11:10 
GeneralRe: Can't change charset in a CListCtrl Pin
Stephen Wilson8-Oct-01 13:07
Stephen Wilson8-Oct-01 13:07 
Generala console quetion Pin
The_Server7-Oct-01 23:10
The_Server7-Oct-01 23:10 
GeneralRe: a console quetion Pin
Tomasz Sowinski8-Oct-01 7:35
Tomasz Sowinski8-Oct-01 7:35 
GeneralRe: a console quetion Pin
The_Server11-Oct-01 0:56
The_Server11-Oct-01 0:56 
GeneralPrint Preview Window Pin
7-Oct-01 22:33
suss7-Oct-01 22:33 
GeneralOLE DB: CDynamicAccessor and Columns order Pin
Paul Selormey7-Oct-01 21:35
Paul Selormey7-Oct-01 21:35 
GeneralRe: OLE DB: CDynamicAccessor and Columns order Pin
Steen Krogsgaard8-Oct-01 1:09
Steen Krogsgaard8-Oct-01 1:09 
GeneralRe: OLE DB: CDynamicAccessor and Columns order Pin
Paul Selormey8-Oct-01 15:18
Paul Selormey8-Oct-01 15:18 
GeneralRe: OLE DB: CDynamicAccessor and Columns order Pin
Steen Krogsgaard8-Oct-01 22:54
Steen Krogsgaard8-Oct-01 22:54 
GeneralRe: OLE DB: CDynamicAccessor and Columns order Pin
Paul Selormey9-Oct-01 0:16
Paul Selormey9-Oct-01 0:16 
GeneralRe: OLE DB: CDynamicAccessor and Columns order Pin
Steen Krogsgaard9-Oct-01 1:39
Steen Krogsgaard9-Oct-01 1:39 
GeneralRe: OLE DB: CDynamicAccessor and Columns order Pin
Tomasz Sowinski8-Oct-01 1:26
Tomasz Sowinski8-Oct-01 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.