Article View: borland.public.cppbuilder.nativeapi
Article #15296Re: TPrinter Problem
From: Remy Lebeau (TeamB)
Date: Tue, 15 Jul 2003 20:56
Date: Tue, 15 Jul 2003 20:56
17 lines
1583 bytes
1583 bytes
"Anthony" <awhitesell@attbi.com> wrote in message news:3f1460f3$1@newsgroups.borland.com... > my_hdc1, my_hdc2, my_hdc3, my_hdc4 are all same. Meaning that you cannot > get the handle of any printer other than the handle to the default printer. > What use is this? How do you get the handle of a printer other than the > default? Call the Win32 API CreateIC() function directly. Check if it is doing the same thing. If it is, then there is nothing TPrinter can do about it, the OS itself is returning the wrong HDC in the first place. CreateIC() is the function that is uses to get the HDC for each printer. Gambit
Technical Details
Message-ID:
<3f14693d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f1460f3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,d59131589fe63384 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-15 14:12:38 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f1460f3$1@newsgroups.borland.com> Subject: Re: TPrinter Problem Date: Tue, 15 Jul 2003 13:56:22 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f14693d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058302269 207.175.226.26 (15 Jul 2003 13:51:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail