🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15151

Re: One last easy printing question

#15151
From: Remy Lebeau (TeamB)
Date: Thu, 17 Jul 2003 04:40
20 lines
1466 bytes
"Anthony" <awhitesell@attbi.com> wrote in message
news:3f161c85@newsgroups.borland.com...

> All I have left to convert is the following three lines:
>
>       Printer()->Canvas->Pen->Color=clBlack;
>       Printer()->Canvas->Font->Name="Courier New";
>       Printer()->Canvas->Font->Size=10;
>
> Does any one know how to do these with API function calls?

Use SelectObject() to select  HPEN and HFONT objects into the Canvas's HDC.
Also look at SetROP2() for the Pen and SetTextColor() for the Font.


Gambit


Gambit
Technical Details
Message-ID: <3f16278d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f161c85@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9d1c7af093dd4f5b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-16 21:39:32 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f161c85@newsgroups.borland.com>
Subject: Re: One last easy printing question
Date: Wed, 16 Jul 2003 21:40:45 -0700
Lines: 22
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: <3f16278d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058416525 207.175.226.26 (16 Jul 2003 21:35:25 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail