🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Capture WM_NCPAINT?

#4759
From: JD
Date: Tue, 29 Nov 2005 08:26
22 lines
1754 bytes
Paw Suddergaard <paw@top-house.dk> wrote:
>
> [...] Here is my code:

That can't be all of it because you said that you were changing
the color to clRed. Nowhere in your code are you doing that.
In fact, you're not setting the color anywhere in there. Try
adding code that explicitly sets the newly allocated TCanvas's
Font and Font::Color.


>       ACanvas->Brush->Style = bsClear;//transparant background

I'm not sure that that's the right thing to do. However, I do
know that this works:

    int pMode = ::SetBkMode( ACanvas->Handle, TRANSPARENT );
    //...
    ::SetBkMode( ACanvas->Handle, pMode );

~ JD
Technical Details
Message-ID: <438c1ec8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43843bb9$1@newsgroups.borland.com> <43843d59$1@newsgroups.borland.com> <438b21c8$1@newsgroups.borland.com> <438b89a3$1@newsgroups.borland.com> <438c0d22$1@newsgroups.borland.com> <438c1578$1@newsgroups.borland.com> <438c19b9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,95cf0255de9936de
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Capture WM_NCPAINT?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 152.163.100.131     
X-Forwarded-For: 172.155.62.171
References: <43843bb9$1@newsgroups.borland.com> <43843d59$1@newsgroups.borland.com> <438b21c8$1@newsgroups.borland.com> <438b89a3$1@newsgroups.borland.com> <438c0d22$1@newsgroups.borland.com> <438c1578$1@newsgroups.borland.com> <438c19b9$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <438c1ec8$1@newsgroups.borland.com>
Date: 29 Nov 2005 01:26:32 -0700
X-Trace: newsgroups.borland.com 1133256392 207.105.83.66 (29 Nov 2005 01:26:32 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail