Article View: borland.public.cppbuilder.nativeapi
Article #8551Re: Using Regions
From: Remy Lebeau (TeamB)
Date: Wed, 13 Oct 2004 16:29
Date: Wed, 13 Oct 2004 16:29
19 lines
1431 bytes
1431 bytes
"JD" <nospam@nospam.com> wrote in message news:416cedf8$1@newsgroups.borland.com... > My understanding is that when one creates a region and > then uses SetWindowRgn is that windows takes ownership > of the region and that one should not then use DeleteObject > to free that region. Correct. > 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 done automatically for you. Gambit
Technical Details
Message-ID:
<416d57ce$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <416cedf8$1@newsgroups.borland.com> Subject: Re: Using Regions Date: Wed, 13 Oct 2004 09:29:15 -0700 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <416d57ce$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097684942 68.69.17.41 (13 Oct 2004 09:29:02 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail