Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RFC 868 Pin
Joe Woodbury17-Sep-09 17:40
professionalJoe Woodbury17-Sep-09 17:40 
GeneralRe: RFC 868 Pin
Stuart Dootson17-Sep-09 20:59
professionalStuart Dootson17-Sep-09 20:59 
GeneralRe: RFC 868 Pin
David Crow18-Sep-09 2:28
David Crow18-Sep-09 2:28 
QuestionRe: RFC 868 [solved] [modified] Pin
CPallini18-Sep-09 9:42
mveCPallini18-Sep-09 9:42 
AnswerRe: RFC 868 [solved] Pin
David Crow18-Sep-09 9:47
David Crow18-Sep-09 9:47 
GeneralRe: RFC 868 [solved] Pin
CPallini18-Sep-09 10:37
mveCPallini18-Sep-09 10:37 
QuestionRe: RFC 868 [solved] Pin
David Crow21-Sep-09 4:05
David Crow21-Sep-09 4:05 
QuestionConvert Julian date/time to Normal date/time? Pin
dipuks17-Sep-09 9:53
dipuks17-Sep-09 9:53 
QuestionRe: Convert Julian date/time to Normal date/time? Pin
David Crow17-Sep-09 10:01
David Crow17-Sep-09 10:01 
AnswerRe: Convert Julian date/time to Normal date/time? Pin
dipuks17-Sep-09 10:37
dipuks17-Sep-09 10:37 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
David Crow17-Sep-09 10:40
David Crow17-Sep-09 10:40 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
dipuks17-Sep-09 10:45
dipuks17-Sep-09 10:45 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
dipuks17-Sep-09 10:52
dipuks17-Sep-09 10:52 
QuestionRe: Convert Julian date/time to Normal date/time? Pin
David Crow17-Sep-09 10:59
David Crow17-Sep-09 10:59 
AnswerRe: Convert Julian date/time to Normal date/time? Pin
dipuks17-Sep-09 11:05
dipuks17-Sep-09 11:05 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
David Crow17-Sep-09 16:35
David Crow17-Sep-09 16:35 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
vasu_sri17-Sep-09 19:35
vasu_sri17-Sep-09 19:35 
QuestionRe: Convert Julian date/time to Normal date/time? Pin
David Crow18-Sep-09 2:41
David Crow18-Sep-09 2:41 
Questioncopy/swap vector between threads... Pin
RobJones17-Sep-09 9:51
RobJones17-Sep-09 9:51 
AnswerRe: copy/swap vector between threads... Pin
Stuart Dootson17-Sep-09 10:13
professionalStuart Dootson17-Sep-09 10:13 
GeneralRe: copy/swap vector between threads... Pin
RobJones17-Sep-09 10:30
RobJones17-Sep-09 10:30 
GeneralRe: copy/swap vector between threads... Pin
CPallini17-Sep-09 10:38
mveCPallini17-Sep-09 10:38 
GeneralRe: copy/swap vector between threads... Pin
RobJones17-Sep-09 10:42
RobJones17-Sep-09 10:42 
GeneralRe: copy/swap vector between threads... Pin
Stuart Dootson17-Sep-09 10:44
professionalStuart Dootson17-Sep-09 10:44 
QuestionInconsistent results when using MFC printing with a CDC and CFormView with OnDraw implemented Pin
Sternocera17-Sep-09 9:49
Sternocera17-Sep-09 9:49 
Hi,

I'm performing printing of reports in an MFC app in what I think is a fairly canonical way...with a CDC and CFormView with OnDraw implemented. CDC's TextOut member functions and so on are called in OnDraw().

I get inconsistent results from printer model to printer model....The margins are different, and sometimes the important parts of my documents are actually cropped. Print preview accurately represents how the document will be (often incorrectly) printed.

Is there some technique that allows me to calculate an offset for the specific model of printer in use on the fly, to compensate when drawing in OnDraw() - perhaps something to do with CDC::GetDeviceCaps()? It seems that the area of the page that my reports are "projected onto" varies somewhat (not terribly, but certainly enough for it to be a problem), but the scale is always correct.

Thanks,
Sternocera

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.