Click here to Skip to main content
15,898,930 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: making a custom control that shows focus Pin
stephen.hazel19-Jan-06 10:29
stephen.hazel19-Jan-06 10:29 
AnswerRe: making a custom control that shows focus Pin
Stephen Hewitt19-Jan-06 11:37
Stephen Hewitt19-Jan-06 11:37 
GeneralRe: making a custom control that shows focus Pin
stephen.hazel19-Jan-06 11:55
stephen.hazel19-Jan-06 11:55 
GeneralRe: making a custom control that shows focus Pin
Stephen Hewitt19-Jan-06 12:01
Stephen Hewitt19-Jan-06 12:01 
GeneralRe: making a custom control that shows focus Pin
stephen.hazel19-Jan-06 12:10
stephen.hazel19-Jan-06 12:10 
QuestionCaret in a dialog box? Pin
misugi19-Jan-06 8:47
misugi19-Jan-06 8:47 
AnswerRe: Caret in a dialog box? Pin
stephen.hazel19-Jan-06 9:35
stephen.hazel19-Jan-06 9:35 
Questiontext measurement in Win XP vs Win 2K Pin
Jim Crafton19-Jan-06 8:37
Jim Crafton19-Jan-06 8:37 
I have some code that renders multiple lines of text using a mono-spaced font (like Courier New, or Lucida Sans Typewriter).
The UI draws the text in an area of no more than 24 lines by 80 characters wide.

The font to draw this text is calculated so that it fills up as much of the current view rect as possible, so resizing the window causes the font size to get larger or smaller.

In Win2K I can resize the window such that there is no extra space at the edges, and on my machine in XP I can also do this. However on several of my users machines, in XP, they cannot do this, resizing will always cause the font size to jump up or down such that there's space left over at the edges.

I'm using the CDC::GetTextMetrics to get the font/text sizes.

Why would I see different text performance, using the same font name/family between Win2K and even between XP installs?

All versions of XP are identical in terms of the build/sp number (as reported by running the "winver" command).

¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
AnswerRe: text measurement in Win XP vs Win 2K Pin
basementman19-Jan-06 9:15
basementman19-Jan-06 9:15 
GeneralRe: text measurement in Win XP vs Win 2K Pin
Jim Crafton19-Jan-06 9:25
Jim Crafton19-Jan-06 9:25 
GeneralRe: text measurement in Win XP vs Win 2K Pin
basementman19-Jan-06 10:35
basementman19-Jan-06 10:35 
QuestionNew to Visual C++ and Win32 - How to bring up a window as activated? Pin
im_chc19-Jan-06 6:02
professionalim_chc19-Jan-06 6:02 
QuestionRe: New to Visual C++ and Win32 - How to bring up a window as activated? Pin
David Crow19-Jan-06 6:06
David Crow19-Jan-06 6:06 
QuestionRe: New to Visual C++ and Win32 - How to bring up a window as activated? Pin
im_chc20-Jan-06 21:06
professionalim_chc20-Jan-06 21:06 
AnswerRe: New to Visual C++ and Win32 - How to bring up a window as activated? Pin
FarPointer19-Jan-06 6:41
FarPointer19-Jan-06 6:41 
QuestionAutomated testing? Pin
im_chc20-Jan-06 20:32
professionalim_chc20-Jan-06 20:32 
QuestionIncluding a class in an MFC project Pin
Lilith.C19-Jan-06 5:39
Lilith.C19-Jan-06 5:39 
AnswerRe: Including a class in an MFC project Pin
David Crow19-Jan-06 6:03
David Crow19-Jan-06 6:03 
QuestionReg: OS problem or Database problem?? Pin
Bhasker P19-Jan-06 5:32
Bhasker P19-Jan-06 5:32 
QuestionRe: Reg: OS problem or Database problem?? Pin
David Crow19-Jan-06 6:07
David Crow19-Jan-06 6:07 
QuestionAnother COM port question Pin
KellyR19-Jan-06 5:14
KellyR19-Jan-06 5:14 
AnswerRe: Another COM port question Pin
Prakash Nadar19-Jan-06 5:39
Prakash Nadar19-Jan-06 5:39 
GeneralRe: Another COM port question Pin
KellyR19-Jan-06 6:09
KellyR19-Jan-06 6:09 
GeneralRe: Another COM port question Pin
Prakash Nadar19-Jan-06 6:15
Prakash Nadar19-Jan-06 6:15 
GeneralRe: Another COM port question Pin
Toby Opferman19-Jan-06 9:24
Toby Opferman19-Jan-06 9:24 

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.