Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Selectively delete in multi column List Control Pin
Mark Salsbery12-Jun-07 6:46
Mark Salsbery12-Jun-07 6:46 
Questioncomparison between string and int Pin
prithaa10-May-07 5:07
prithaa10-May-07 5:07 
AnswerRe: comparison between string and int Pin
led mike10-May-07 5:18
led mike10-May-07 5:18 
AnswerRe: comparison between string and int Pin
David Crow10-May-07 5:54
David Crow10-May-07 5:54 
GeneralRe: comparison between string and int Pin
prithaa11-May-07 23:53
prithaa11-May-07 23:53 
AnswerRe: comparison between string and int Pin
Nelek13-May-07 20:07
protectorNelek13-May-07 20:07 
QuestionQuestion about fonts Pin
KellyR10-May-07 4:35
KellyR10-May-07 4:35 
AnswerRe: Question about fonts Pin
Mark Salsbery10-May-07 5:37
Mark Salsbery10-May-07 5:37 
KellyR wrote:
But with LOGFONT I have to give it lfHeight and lfWidth which seems somewhat arbitrary.


Probably not much help, but...

I get consistent results across machines by setting only the lfHeight, lfWeight,
lfPitchAndFamily, and lfFaceName members of the LOGFONT struct. The rest of the members are set
to 0. I use a negative height and let the system pick the appropriate width.

The only inconsistency I've experienced is when using a specific font that does not come pre-
installed on all systems (so the font gets mapped to the closest match, not always good).

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Question about fonts Pin
KellyR10-May-07 7:23
KellyR10-May-07 7:23 
AnswerRe: Question about fonts Pin
James R. Twine10-May-07 8:57
James R. Twine10-May-07 8:57 
Questionsave in c++ Pin
lavy288310-May-07 3:55
lavy288310-May-07 3:55 
AnswerRe: save in c++ Pin
toxcct10-May-07 4:11
toxcct10-May-07 4:11 
GeneralRe: save in c++ Pin
lavy288310-May-07 4:15
lavy288310-May-07 4:15 
QuestionRe: save in c++ Pin
David Crow10-May-07 4:17
David Crow10-May-07 4:17 
AnswerRe: save in c++ Pin
lavy288310-May-07 4:20
lavy288310-May-07 4:20 
GeneralRe: save in c++ Pin
David Crow10-May-07 4:25
David Crow10-May-07 4:25 
QuestionPainting Issue Pin
Malli_S10-May-07 3:53
Malli_S10-May-07 3:53 
Questionhow to mute a channel in mp3 audio file (with 2 channels) Pin
Anhvo10-May-07 3:46
Anhvo10-May-07 3:46 
QuestionData Transfer in Socket Programming Pin
georgekjolly10-May-07 3:34
georgekjolly10-May-07 3:34 
AnswerRe: Data Transfer in Socket Programming Pin
Cedric Moonen10-May-07 4:00
Cedric Moonen10-May-07 4:00 
GeneralRe: Data Transfer in Socket Programming Pin
georgekjolly11-May-07 4:49
georgekjolly11-May-07 4:49 
AnswerRe: Data Transfer in Socket Programming [modified] Pin
Eytukan10-May-07 5:36
Eytukan10-May-07 5:36 
QuestionMenu Positioning Pin
jannathali10-May-07 3:11
jannathali10-May-07 3:11 
AnswerRe: Menu Positioning Pin
Nelek13-May-07 20:03
protectorNelek13-May-07 20:03 
QuestionHow to change font of ToolTip control? Pin
Atul2310-May-07 2:50
Atul2310-May-07 2:50 

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.