🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Using Regions

#8559
From: Bob Gonder
Date: Wed, 13 Oct 2004 16:48
11 lines
1346 bytes
JD wrote:

>Can any one please confirm that if SetWindowRgn is called again
>on the same HWND with a different HRGN, that windows deletes
>the object or if I have to do it myself?

It is sometimes instructive to double-check with the source.
Your answer is here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/pantdraw_2him.asp

"The system deletes the region handle when it no longer needed."
Technical Details
Message-ID: <ptmqm0hbjuajh5cqlt8e78rv0c3m9k4q3d@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <416cedf8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,648735482f2c2ce6
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Using Regions
Date: Wed, 13 Oct 2004 09:48:46 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <ptmqm0hbjuajh5cqlt8e78rv0c3m9k4q3d@4ax.com>
References: <416cedf8$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.36.20
X-Trace: newsgroups.borland.com 1097686123 67.77.36.20 (13 Oct 2004 09:48:43 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail