Article View: borland.public.cppbuilder.nativeapi
Article #16750Re: WM_NCPAINT - no region to be had
From: JD
Date: Sun, 27 Apr 2003 02:54
Date: Sun, 27 Apr 2003 02:54
19 lines
1903 bytes
1903 bytes
"Chris" <chris@chrischfmouseyREMOVE.karoo.co.uk> wrote: > [...] Often the app would break on BP1 even though nothing > has covered the form's border, when this is the case > GetRegionData fails because hrgn is always at 00000001. Something has to happen to paint the nonclient area when it's in full view. In this case a region would be overkill since a RECT will do. MS wouldn't have undocumented behavior in the OS, would they? > If I actually invalidated the form's border by moving it off > screen, BP2 fires and now hrgn is at something like 0d0201030 Well, well, well. Guess what? Works for me too :-O I had this thing working yesterday and didn't know it. Now I need to figure out the caption painting for when the form looses focus. ~ JD
Technical Details
Message-ID:
<3eab467b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ea8c4fd$1@newsgroups.borland.com> <3ea93062@newsgroups.borland.com> <3eaa9f2d$2@newsgroups.borland.com> <3eaadb70@newsgroups.borland.com> <3eaafbd2$1@newsgroups.borland.com> <3eab0d33@newsgroups.borland.com> <3eab1440$1@newsgroups.borland.com> <3eab1f63@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,bd52d89ee166c26a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-26 20:00:22 PST From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: WM_NCPAINT - no region to be had Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 172.154.177.201 172.154.177.201 References: <3ea8c4fd$1@newsgroups.borland.com> <3ea93062@newsgroups.borland.com> <3eaa9f2d$2@newsgroups.borland.com> <3eaadb70@newsgroups.borland.com> <3eaafbd2$1@newsgroups.borland.com> <3eab0d33@newsgroups.borland.com> <3eab1440$1@newsgroups.borland.com> <3eab1f63@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3eab467b$1@newsgroups.borland.com> Date: 26 Apr 2003 19:54:51 -0700 X-Trace: newsgroups.borland.com 1051412091 207.105.83.65 (26 Apr 2003 19:54:51 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail