🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How can I drop a border on a Window (Form) that was shaped via: CreateRoundRectRgn ( )

#13923
From: Rodolfo Frino
Date: Tue, 09 Sep 2003 00:00
41 lines
2059 bytes
I don't understand your question. If this is what you mean

__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
    BorderStyle = bsSizeToolWin;    // or bsSingle, etc

    HRGN hRegion = CreateRoundRectRgn(0,0, Width, Height,50, 50);

    SetWindowRgn(Handle, hRegion, true);
}

it works. If this is not what you mean, could you explain what you want to
achieve in more detail, please?


Rodolfo

"Oren (Halvani.de)" <neroniker@gmx.de> wrote in message
news:3f5cfb60$1@newsgroups.borland.com...
> hi dear builders,
>
> can someone give me a hint how I can drop a border around a window
> that was shaped by a: CreateRoundRectRgn( ) ??
>
> I mean something like Form1->BorderStyle = bsSingle;
>
>
> here is what I have...
>
> /***************************************************/
>
> void __fastcall TfrmCredits::FormShow(TObject *Sender)
> {
>    HRGN hRegion = CreateRoundRectRgn(0,0, frmCredits->Width,
> frmCredits->Height,50, 50);
>
>    SetWindowRgn(frmCredits->Handle, hRegion, true);
> }
>
>
Technical Details
Message-ID: <3f5d1811@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!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f5cfb60$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,23d0ad560d6e34ac
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-08 17:07:30 PST
From: "Rodolfo Frino" <rodolfofrino@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f5cfb60$1@newsgroups.borland.com>
Subject: Re: How can I drop a border on a Window (Form) that was shaped via: CreateRoundRectRgn ( )
Date: Tue, 9 Sep 2003 10:00:36 +1000
Lines: 43
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.18.122
Message-ID: <3f5d1811@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063065617 203.206.18.122 (8 Sep 2003 17:00:17 -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!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail