CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Printing DC

  1. #1
    Join Date
    Feb 2006
    Location
    Croatia - Zagreb
    Posts
    459

    Printing DC

    Hi.
    Is there some function or class that would print DC on printer somthing like
    dc = GetDC(...) and that something like PrintDC(dc)?
    You just divided by zero, didn't you?

  2. #2
    Join Date
    Apr 2006
    Location
    Valley of the Kings, Egypt
    Posts
    1

    Re: Printing DC

    Quote Originally Posted by Odiee
    Is there some function or class that would print DC on printer somthing like
    dc = GetDC(...) and that something like PrintDC(dc)?
    Your question is not very clear. There's no specific printer DC - but when implementing your drawing code, you can use CDC's member function IsPrinting() to determine whether you are currently drawing to the screen or to the printer.

    // Edit: Oops...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured