🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WM_NCPAINT - no region to be had

#16744
From: JD
Date: Sat, 26 Apr 2003 22:54
22 lines
1775 bytes
"Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> wrote:
>
>"JD" <nospam@nospam.com> wrote in message
>news:3eaafbd2$1@newsgroups.borland.com...
>
>>       DWORD dwCount = GetRegionData( hrgn, 0, NULL );
>>
>> dwCount is always zero
>
>According to the Win32 API documentation:
>
>    "If the function fails, the return value is zero."
>
>Have you tried using GetLastError() to see if it returns why it failed?

GetLastError returns an error code of 87 (decimal) which
translates to: ERROR_INVALID_PARAMETER (The parameter is
incorrect). Zero and NULL are valid according to the docs so
that leaves the HRGN which is supplied by the OS.

~ JD
Technical Details
Message-ID: <3eab0e08$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ea8c4fd$1@newsgroups.borland.com> <3ea93062@newsgroups.borland.com> <3eaa9f2d$2@newsgroups.borland.com> <3eaadb70@newsgroups.borland.com> <3eaafbd2$1@newsgroups.borland.com> <3eab0124@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 16:16:59 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.142.254.33 172.142.254.33    
References: <3ea8c4fd$1@newsgroups.borland.com> <3ea93062@newsgroups.borland.com> <3eaa9f2d$2@newsgroups.borland.com> <3eaadb70@newsgroups.borland.com> <3eaafbd2$1@newsgroups.borland.com> <3eab0124@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3eab0e08$1@newsgroups.borland.com>
Date: 26 Apr 2003 15:54:00 -0700
X-Trace: newsgroups.borland.com 1051397640 207.105.83.65 (26 Apr 2003 15:54:00 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail