🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to make rounded window corners...how ?

#14096
From: Rodolfo Frino
Date: Tue, 26 Aug 2003 22:27
30 lines
1611 bytes
If you want your window to be rectangular but with round corners then
the right API is CreateRoundRectRgn

Have a look to this example
http://www.geocities.com/rodolfofrino/RegionFunctionsEditControl.html

It also uses the CreateEllipticRgn API
You can adapt that code to work on a Form rather than on Edit box


Rodolfo


"Oren (Halvani.de)" <neroniker@gmx.de> wrote in message
news:3f4bdb81@newsgroups.borland.com...
> hi dear builders,
>
> can someone tell me how its possible to make the corners of my window
> rounded ?
>
> is CreateEllipticRgn( ) the right one for this ? or what else can I try ??
>
>
>
> thanks in advance...
>
>
> Oren
>
>
Technical Details
Message-ID: <3f4bdeb4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!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
References: <3f4bdb81@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2670519446072b18
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-26 15:33:46 PST
From: "Rodolfo Frino" <rodolfofrino@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f4bdb81@newsgroups.borland.com>
Subject: Re: how to make rounded window corners...how ? 
Date: Wed, 27 Aug 2003 08:27:28 +1000
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 203.206.17.81
Message-ID: <3f4bdeb4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061936820 203.206.17.81 (26 Aug 2003 15:27:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!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