Click here to Skip to main content
15,909,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Timer Pin
James R. Twine7-Feb-06 11:29
James R. Twine7-Feb-06 11:29 
AnswerRe: Timer Pin
James R. Twine6-Feb-06 3:58
James R. Twine6-Feb-06 3:58 
AnswerRe: Timer Pin
normanS6-Feb-06 18:20
normanS6-Feb-06 18:20 
QuestionODE equation solver Pin
Ming Luo6-Feb-06 3:25
Ming Luo6-Feb-06 3:25 
AnswerRe: ODE equation solver Pin
minox6-Feb-06 8:11
minox6-Feb-06 8:11 
Questionprinting with MFC Pin
vikas amin6-Feb-06 2:32
vikas amin6-Feb-06 2:32 
AnswerRe: printing with MFC Pin
David Crow6-Feb-06 2:58
David Crow6-Feb-06 2:58 
AnswerRe: printing with MFC Pin
PJ Arends6-Feb-06 10:54
professionalPJ Arends6-Feb-06 10:54 
How are you creating your font for printing?

You can use CreatPointFont(), passing in the printer DC which will account for the higher DPI of the printer as compared to the screen. Or you could use CreateFontIndirect() and calculating the LOGFONT.lfHeight variable depending on the DPI of the printer
logfont.lfHeight = -MulDiv(PointSize, PrinterDC.GetDeviceCaps(LOGPIXELSY), 72);
MyCFont.CreateFontIndirect(&logfont);
I can't recall where I got the MulDiv formula from, but I am sure it is in MSDN somewhere.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
AnswerRe: printing with MFC Pin
#realJSOP9-Feb-06 9:30
professional#realJSOP9-Feb-06 9:30 
QuestionDetermining partitions? Pin
pc_dev6-Feb-06 2:22
pc_dev6-Feb-06 2:22 
AnswerRe: Determining partitions? Pin
Rage6-Feb-06 2:46
professionalRage6-Feb-06 2:46 
AnswerRe: Determining partitions? Pin
James R. Twine6-Feb-06 3:01
James R. Twine6-Feb-06 3:01 
QuestionAdding hyperlink in static control/dialog Pin
pc_dev6-Feb-06 2:02
pc_dev6-Feb-06 2:02 
AnswerRe: Adding hyperlink in static control/dialog Pin
Cedric Moonen6-Feb-06 2:18
Cedric Moonen6-Feb-06 2:18 
AnswerRe: Adding hyperlink in static control/dialog Pin
James R. Twine6-Feb-06 2:38
James R. Twine6-Feb-06 2:38 
QuestionCListCtrl run-time creation question Pin
Odiee6-Feb-06 1:48
Odiee6-Feb-06 1:48 
AnswerRe: CListCtrl run-time creation question Pin
Hamid_RT6-Feb-06 3:30
Hamid_RT6-Feb-06 3:30 
QuestionAdd html help to a button Pin
schliz6-Feb-06 1:35
schliz6-Feb-06 1:35 
AnswerRe: Add html help to a button Pin
pc_dev6-Feb-06 1:56
pc_dev6-Feb-06 1:56 
GeneralRe: Add html help to a button Pin
schliz6-Feb-06 4:31
schliz6-Feb-06 4:31 
QuestionHow to ignore a group of warnings in a project "#pragma deprecated" Pin
arunperi6-Feb-06 1:10
arunperi6-Feb-06 1:10 
AnswerRe: How to ignore a group of warnings in a project "#pragma deprecated" Pin
pg__6-Feb-06 1:58
pg__6-Feb-06 1:58 
AnswerRe: How to ignore a group of warnings in a project "#pragma deprecated" Pin
toxcct6-Feb-06 2:31
toxcct6-Feb-06 2:31 
GeneralRe: How to ignore a group of warnings in a project "#pragma deprecated" Pin
arunperi6-Feb-06 16:50
arunperi6-Feb-06 16:50 
GeneralRe: How to ignore a group of warnings in a project "#pragma deprecated" Pin
toxcct6-Feb-06 21:16
toxcct6-Feb-06 21:16 

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.