Article View: borland.public.cppbuilder.nativeapi
Article #5720Re: WM_PRINT does not work properly
From: Thorsten Kettner
Date: Fri, 22 Jul 2005 09:13
Date: Fri, 22 Jul 2005 09:13
11 lines
1391 bytes
1391 bytes
"Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de> wrote: > > 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? Okay, problem solved. SendMessage works, Perform doesn't. Don't know why, but who am I to complain? :-) SendMessage(Button2->Handle, WM_PRINT, (WPARAM)PaintBox1->Canvas->Handle, (LPARAM)PRF_NONCLIENT|PRF_CLIENT|PRF_ERASEBKGND);
Technical Details
Message-ID:
<42e0b8bc$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-mailReferences:
<42e0b582$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f6c9e2fc378df255 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Thorsten Kettner" <thorsten.kettner@otto.de> Sender: "Thorsten Kettner" <thorsten.kettner@otto.de> Reply-To: "Thorsten Kettner" <thorsten.kettner@otto.de> Subject: Re: WM_PRINT does not work properly Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 80.85.196.92 References: <42e0b582$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42e0b8bc$1@newsgroups.borland.com> Date: 22 Jul 2005 02:13:32 -0700 X-Trace: newsgroups.borland.com 1122023612 207.105.83.66 (22 Jul 2005 02:13:32 -0700) Lines: 11 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