Article View: borland.public.cppbuilder.nativeapi
Article #4756Re: Capture WM_NCPAINT?
From: JD
Date: Tue, 29 Nov 2005 07:51
Date: Tue, 29 Nov 2005 07:51
19 lines
1755 bytes
1755 bytes
Paw Suddergaard <paw@top-house.dk> wrote: > >> [...] 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... I meantioned using DrawText *not* because of your current problem but because of a future problem that you will see if the window is sized too small to host the entire caption. DrawText allows for you to specify a clipping rect and it also allows you to alter the caption so that it's ellippissed at the end. ~ JD
Technical Details
Message-ID:
<438c169d$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-mailReferences:
<43843bb9$1@newsgroups.borland.com> <43843d59$1@newsgroups.borland.com> <438b21c8$1@newsgroups.borland.com> <438c0ad6$1@newsgroups.borland.com> <438c1507@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: 64.12.116.131 X-Forwarded-For: 172.171.178.160 References: <43843bb9$1@newsgroups.borland.com> <43843d59$1@newsgroups.borland.com> <438b21c8$1@newsgroups.borland.com> <438c0ad6$1@newsgroups.borland.com> <438c1507@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <438c169d$1@newsgroups.borland.com> Date: 29 Nov 2005 00:51:41 -0700 X-Trace: newsgroups.borland.com 1133254301 207.105.83.66 (29 Nov 2005 00:51:41 -0700) Lines: 20 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