🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Print settings

#14767
From: JD
Date: Sat, 02 Aug 2003 03:23
23 lines
1582 bytes
"JD" <nospam@nospam.com> wrote:
>Graphics::TBitmap *pImage = new Graphics::TBitmap();
>for( int i = Start; i <= Stop; ++i )
>  {
>  pImage->Height = PageControl->Pages[i]->Height;
>  pImage->Width  = PageControl->Pages[i]->Width;
>  pImage->Canvas.Lock();
>  PageControl->Pages[i]->PaintTo( pImage->Handle, 0, 0 );
>  Printer()->Canvas->StretchDraw( TRect(0, 0, 200, 200), pImage );  
>  pImage->Canvas.Unlock();

Move Unlock() to the line above it:

  PageControl->Pages[i]->PaintTo( pImage->Handle, 0, 0 );
  pImage->Canvas.Unlock();
  Printer()->Canvas->StretchDraw( TRect(0, 0, 200, 200), pImage );  

>  }
>delete pImage;
>
>~ JD
>
Technical Details
Message-ID: <3f2b2ece$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f2a6df8$1@newsgroups.borland.com> <3f2ada0b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d5de15b490a744a2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-01 20:40:03 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Print settings
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.142.234.124 172.142.234.124    
References:  <3f2a6df8$1@newsgroups.borland.com> <3f2ada0b$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f2b2ece$1@newsgroups.borland.com>
Date: 1 Aug 2003 20:23:58 -0700
X-Trace: newsgroups.borland.com 1059794638 207.105.83.65 (1 Aug 2003 20:23:58 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail