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

C / C++ / MFC

 
GeneralRe: Email Address Extraction Pin
carrie21-Jan-03 13:38
carrie21-Jan-03 13:38 
Generaltoolbar resize as address in explorer. Pin
tobbemannen21-Jan-03 11:48
tobbemannen21-Jan-03 11:48 
Generalvc7 application problems in win98 Pin
Stefan Dahlin21-Jan-03 11:26
Stefan Dahlin21-Jan-03 11:26 
GeneralRe: vc7 application problems in win98 Pin
AlexO21-Jan-03 12:13
AlexO21-Jan-03 12:13 
GeneralRe: vc7 application problems in win98 Pin
Michael Dunn21-Jan-03 20:31
sitebuilderMichael Dunn21-Jan-03 20:31 
GeneralRe: vc7 application problems in win98 Pin
Stefan Dahlin22-Jan-03 5:17
Stefan Dahlin22-Jan-03 5:17 
GeneralRe: vc7 application problems in win98 Pin
Stefan Dahlin22-Jan-03 8:15
Stefan Dahlin22-Jan-03 8:15 
GeneralDrawing Unicode Text with GDI Pin
alibobba21-Jan-03 10:55
alibobba21-Jan-03 10:55 
Hi - I'm on WinXP using .NET Visual C++.

I am trying to draw unicode characters (phonetic symbols, specifically) to a CWnd using GDI... I dont' think I have to change my app to entirely Unicode to do this (?), but don't know why this doesn't work:

CFont font;
font.CreateFont(20,
0, // width
0, // escapement
0, // orientation
25, // weight
FALSE, // italic
FALSE, // underline
0, // strikeout
0, // char set
0, // out precision
0, // clip precision
0, // quality
0, // pitch and family
"Arial Unicode MS");

int iNumPhonemes = _phonemeList.GetNumPhonemes();
CPoint drawPoint;
CString str(TEXT(""));
memDC.SelectObject(&font);
for(int i = 0; i < iNumPhonemes; i++)
{
str = TEXT("");
WCHAR ipaCode = (WCHAR)_phonemeList[i].ipaCode;
str += WCHAR(ipaCode);
memDC.TextOut(40, 40*i, TEXT(str));
}

... where _phonemeList.ipaCode is just an integer number, the unicode decimal value of the required symbol. It seems to ignore the Unicode part and just print the character corresponding to the bottom byte of the unicode character.

Any ideas?

TIA


alibob
GeneralRe: Drawing Unicode Text with GDI Pin
Stefan Pedersen21-Jan-03 15:21
Stefan Pedersen21-Jan-03 15:21 
GeneralCOM and Multithreading Pin
act_x21-Jan-03 10:44
act_x21-Jan-03 10:44 
GeneralRe: COM and Multithreading Pin
John M. Drescher21-Jan-03 11:02
John M. Drescher21-Jan-03 11:02 
GeneralRe: COM and Multithreading Pin
act_x21-Jan-03 11:12
act_x21-Jan-03 11:12 
GeneralRe: COM and Multithreading Pin
Stefan Pedersen21-Jan-03 11:03
Stefan Pedersen21-Jan-03 11:03 
GeneralQuestion about NEW throwing in MFC app Pin
FrankRizzo21-Jan-03 10:38
FrankRizzo21-Jan-03 10:38 
GeneralRe: Question about NEW throwing in MFC app Pin
Michael Dunn21-Jan-03 10:55
sitebuilderMichael Dunn21-Jan-03 10:55 
GeneralRe: Question about NEW throwing in MFC app Pin
FrankRizzo21-Jan-03 11:11
FrankRizzo21-Jan-03 11:11 
GeneralTransparent Group Box , huh?! Pin
brianwelsch21-Jan-03 10:11
brianwelsch21-Jan-03 10:11 
GeneralRe: Transparent Group Box , huh?! Pin
dazinith21-Jan-03 10:30
dazinith21-Jan-03 10:30 
GeneralRe: Transparent Group Box , huh?! Pin
Brit21-Jan-03 14:00
Brit21-Jan-03 14:00 
GeneralCatching maximize of an app Pin
The Lady of Shallots21-Jan-03 10:04
The Lady of Shallots21-Jan-03 10:04 
GeneralRe: Catching maximize of an app Pin
AlexO21-Jan-03 10:14
AlexO21-Jan-03 10:14 
GeneralRe: Catching maximize of an app Pin
The Lady of Shallots21-Jan-03 10:21
The Lady of Shallots21-Jan-03 10:21 
QuestionSimulate a keypress, or go to the next field? Pin
dazinith21-Jan-03 9:54
dazinith21-Jan-03 9:54 
AnswerRe: Simulate a keypress, or go to the next field? Pin
Joaquín M López Muñoz21-Jan-03 9:55
Joaquín M López Muñoz21-Jan-03 9:55 
GeneralRe: Simulate a keypress, or go to the next field? Pin
dazinith21-Jan-03 10:29
dazinith21-Jan-03 10:29 

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.