🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Capture WM_NCPAINT?

#4752
From: JD
Date: Tue, 29 Nov 2005 07:01
19 lines
1453 bytes
Paw Suddergaard <paw@top-house.dk> wrote:
>
> [...] if i set focus to another window, it "SOMETIMES" does
> not draw the text...

My guess would be that your problem is because the sample
fails to set the Font and/or Font::Color.

> This problem is in WinXP with theming on, - i have not tried
> anything else...

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.

~ JD
Technical Details
Message-ID: <438c0ad6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43843bb9$1@newsgroups.borland.com> <43843d59$1@newsgroups.borland.com> <438b21c8$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: 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>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <438c0ad6$1@newsgroups.borland.com>
Date: 29 Nov 2005 00:01:26 -0700
X-Trace: newsgroups.borland.com 1133251286 207.105.83.66 (29 Nov 2005 00:01:26 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail