Article View: borland.public.cppbuilder.nativeapi
Article #4755Re: Capture WM_NCPAINT?
From: Paw Suddergaard
Date: Tue, 29 Nov 2005 08:56
Date: Tue, 29 Nov 2005 08:56
24 lines
1900 bytes
1900 bytes
Hi! Thanks for your reply! > My guess would be that your problem is because the sample > fails to set the Font and/or Font::Color. Well it gets set to clRed and a specific font type, so? > Theming should have no impact other than the fact that you > are not theming *your* drawing. You should also look at using > the win32 API DrawText instead of TCanvas::TextOut because if > the Caption is too long for the window's width, it will paint > over the border icons. I have just tried using the DrawText function, and it draws, but i get the same behaviour when i set focus away on another window... This i starting to anoy me :( Anyways thanks! If any of you have an idea or solution i would be very happy if you would post it. /Paw
Technical Details
Message-ID:
<438c1507@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43843bb9$1@newsgroups.borland.com> <43843d59$1@newsgroups.borland.com> <438b21c8$1@newsgroups.borland.com> <438c0ad6$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 Date: Tue, 29 Nov 2005 09:56:13 +0100 From: Paw Suddergaard <paw@top-house.dk> User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Capture WM_NCPAINT? References: <43843bb9$1@newsgroups.borland.com> <43843d59$1@newsgroups.borland.com> <438b21c8$1@newsgroups.borland.com> <438c0ad6$1@newsgroups.borland.com> In-Reply-To: <438c0ad6$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.242.10.213 Message-ID: <438c1507@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1133253895 62.242.10.213 (29 Nov 2005 00:44:55 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail