Re: How to print what I have drawn in OnDraw
From: Pat Crowe (pcjREMOVE_at_mqp.com)
Date: 05/28/04
- Next message: Eugenia: "Combo show the item wrong, I need the source code user32.dll library"
- Previous message: sukhil s: "any reason for studying vc++6?"
- In reply to: fengxvhui: "How to print what I have drawn in OnDraw"
- Next in thread: Johan Rosengren: "Re: How to print what I have drawn in OnDraw"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 28 May 2004 15:32:22 +0100
I remember liking the description of how to do this this in Jeff Prosise'
book Programming Windows with MFC 2nd Ed.
"fengxvhui" <anonymous@discussions.microsoft.com> wrote in message
news:BC849B23-471D-4222-A486-55A0772C738C@microsoft.com...
> I have finished drawing something on screen and now I need to draw them on
printer. Since the resolution of printer is far larger than that of screen,
I have to scale the distance in OnDraw.
> From the former post I have known that I need use such functions as
GetDeviceCap, but I can not find a complete and simple instance even I have
searched such websites as codeguru and codeproject.
> What I need is an instance that show me how to get the printer's
resolution, howt to get the paper's size , how to calculate the scale and
how to modify the OnDraw to accustomed itself to display and printing. For
example, in order to fill with the paper, I must create a rectangle in a
proportion to the paper, calculate the scale between screen rectangle and
the paper rectangle and multiply every distance in OnDraw by the scale.
> Thank you!
- Next message: Eugenia: "Combo show the item wrong, I need the source code user32.dll library"
- Previous message: sukhil s: "any reason for studying vc++6?"
- In reply to: fengxvhui: "How to print what I have drawn in OnDraw"
- Next in thread: Johan Rosengren: "Re: How to print what I have drawn in OnDraw"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|