Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 1 Apr 2008 10:52:01 -0700,    group: microsoft.public.win32.programmer.gdi        back       


Printing multiple DC   
Hi,

I am trying to implement a printing functionality in an application and have 
never done it.
One question I have, is it possible to create multiple DC which I will pass 
to my printer DC?
I need to print different kind of information on the page from different 
sources, so I was thinking of creating a DC for each of the information I 
need to print, then arrange those DC on the main printer DC.
Is it possible? How can it be done otherwise?

Thank you
date: Tue, 1 Apr 2008 10:52:01 -0700   author:   Clem

Re: Printing multiple DC   
"Clem"  wrote in message 
news:78564DE6-4B82-4830-AF75-8D47F07FA17B@microsoft.com...
> Hi,
>
> I am trying to implement a printing functionality in an application and 
> have
> never done it.
> One question I have, is it possible to create multiple DC which I will 
> pass
> to my printer DC?
> I need to print different kind of information on the page from different
> sources, so I was thinking of creating a DC for each of the information I
> need to print, then arrange those DC on the main printer DC.
> Is it possible? How can it be done otherwise?


You don't pass DCs to another DC.  You should be drawing on the printer DC 
the same way you'd draw on a screen/window DC.
The sources for the rendering you do on the printer DC are all up to you :)

Mark

-- 
Mark Salsbery
Microsoft MVP - Visual C++


>
> Thank you
date: Tue, 1 Apr 2008 10:57:57 -0700   author:   Mark Salsbery [MVP] MarkSalsbery[MVP]@newsgroup.nospam

Re: Printing multiple DC   
Thank you for your quick reply.

"Mark Salsbery [MVP]" wrote:

> "Clem"  wrote in message 
> news:78564DE6-4B82-4830-AF75-8D47F07FA17B@microsoft.com...
> > Hi,
> >
> > I am trying to implement a printing functionality in an application and 
> > have
> > never done it.
> > One question I have, is it possible to create multiple DC which I will 
> > pass
> > to my printer DC?
> > I need to print different kind of information on the page from different
> > sources, so I was thinking of creating a DC for each of the information I
> > need to print, then arrange those DC on the main printer DC.
> > Is it possible? How can it be done otherwise?
> 
> 
> You don't pass DCs to another DC.  You should be drawing on the printer DC 
> the same way you'd draw on a screen/window DC.
> The sources for the rendering you do on the printer DC are all up to you :)
> 
> Mark
> 
> -- 
> Mark Salsbery
> Microsoft MVP - Visual C++
> 
> 
> >
> > Thank you 
>
date: Tue, 1 Apr 2008 11:18:02 -0700   author:   Clem

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us