🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

WM_PRINT does not work properly

#5719
From: Thorsten Kettner
Date: Fri, 22 Jul 2005 08:59
15 lines
1383 bytes
This is my paintbox's OnPaint:

void __fastcall TForm1::PaintBox1Paint(TObject *Sender)
{
  PaintBox1->Canvas->MoveTo(10,10);
  PaintBox1->Canvas->LineTo(100,100);
  Button2->Perform(WM_PRINT, (WPARAM)PaintBox1->Canvas->Handle, (LPARAM)PRF_NONCLIENT|PRF_CLIENT|PRF_ERASEBKGND);
}

The line gets drawn, the button only if it's visible. Why? I
didn't set PRF_CHECKVISIBLE, so the button should be rendered,
no matter if it is visible or not, right?

System is Win NT, BCB 6 Ent.
Technical Details
Message-ID: <42e0b582$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f6c9e2fc378df255,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Sender: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Reply-To: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de>
Subject: WM_PRINT does not work properly
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.85.196.94     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42e0b582$1@newsgroups.borland.com>
Date: 22 Jul 2005 01:59:46 -0700
X-Trace: newsgroups.borland.com 1122022786 207.105.83.66 (22 Jul 2005 01:59:46 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail