Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert normal chinese code to unicode ISO 10646 code Pin
John R. Shaw9-Nov-05 21:26
John R. Shaw9-Nov-05 21:26 
GeneralRe: How to convert normal chinese code to unicode ISO 10646 code Pin
LaHaHa9-Nov-05 21:48
LaHaHa9-Nov-05 21:48 
GeneralRe: How to convert normal chinese code to unicode ISO 10646 code Pin
John R. Shaw9-Nov-05 22:14
John R. Shaw9-Nov-05 22:14 
GeneralRe: How to convert normal chinese code to unicode ISO 10646 code Pin
LaHaHa9-Nov-05 23:13
LaHaHa9-Nov-05 23:13 
QuestionHFONT creates wrongly sized fonts Pin
Axonn Echysttas9-Nov-05 20:27
Axonn Echysttas9-Nov-05 20:27 
GeneralRe: HFONT creates wrongly sized fonts Pin
Siarhei Alikhver9-Nov-05 20:52
Siarhei Alikhver9-Nov-05 20:52 
GeneralRe: HFONT creates wrongly sized fonts Pin
Axonn Echysttas9-Nov-05 21:45
Axonn Echysttas9-Nov-05 21:45 
AnswerRe: HFONT creates wrongly sized fonts Pin
John R. Shaw9-Nov-05 21:46
John R. Shaw9-Nov-05 21:46 
Sorry cann't remember the calculation right now. The CreateFont() function says it takes the logical units of the font, which is usualy the point size.

So when you specify the height, you are not specifying the height in pixels, you need to do a conversion.

Ooh! I just found this:
lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72); (index: LOGFONT)


INTP
Every thing is relative...
GeneralRe: HFONT creates wrongly sized fonts Pin
Axonn Echysttas9-Nov-05 22:09
Axonn Echysttas9-Nov-05 22:09 
GeneralRe: HFONT creates wrongly sized fonts Pin
Axonn Echysttas9-Nov-05 22:13
Axonn Echysttas9-Nov-05 22:13 
GeneralRe: HFONT creates wrongly sized fonts Pin
John R. Shaw9-Nov-05 22:24
John R. Shaw9-Nov-05 22:24 
GeneralRe: HFONT creates wrongly sized fonts Pin
Axonn Echysttas9-Nov-05 23:46
Axonn Echysttas9-Nov-05 23:46 
Questioncrystal report in vc++ Pin
lallaba9-Nov-05 20:21
lallaba9-Nov-05 20:21 
QuestionSendMessage Pin
Nishad S9-Nov-05 20:09
Nishad S9-Nov-05 20:09 
AnswerRe: SendMessage Pin
Johann Gerell9-Nov-05 20:35
Johann Gerell9-Nov-05 20:35 
AnswerRe: SendMessage Pin
James R. Twine10-Nov-05 8:26
James R. Twine10-Nov-05 8:26 
QuestionIs there any retstrictions to make an exe as Service Pin
snprani9-Nov-05 19:31
snprani9-Nov-05 19:31 
AnswerRe: Is there any retstrictions to make an exe as Service Pin
Calc209-Nov-05 20:37
Calc209-Nov-05 20:37 
AnswerRe: Is there any retstrictions to make an exe as Service Pin
Calc209-Nov-05 20:37
Calc209-Nov-05 20:37 
AnswerRe: Is there any retstrictions to make an exe as Service Pin
Bob Stanneveld9-Nov-05 22:38
Bob Stanneveld9-Nov-05 22:38 
QuestionPlz. help............. Pin
NityaKakkar9-Nov-05 19:16
NityaKakkar9-Nov-05 19:16 
AnswerRe: Plz. help............. Pin
ThatsAlok9-Nov-05 21:46
ThatsAlok9-Nov-05 21:46 
AnswerRe: Plz. help............. Pin
John R. Shaw9-Nov-05 21:56
John R. Shaw9-Nov-05 21:56 
Questionunable to include stdafx.h file(in simple win32 DLL) Pin
QuickDeveloper9-Nov-05 19:04
QuickDeveloper9-Nov-05 19:04 
AnswerRe: unable to include stdafx.h file(in simple win32 DLL) Pin
Nibu babu thomas9-Nov-05 19:26
Nibu babu thomas9-Nov-05 19: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.